Pycharm:設定完Anaconda後報錯TypeError: an integer is required (got type bytes)
背景:安裝了最新版本的Anaconda3.9後,在Pycharm中設定Python Interpreter為這個最新版本Anaconda檔案下的python.exe後,控制檯無法啟動並報錯TypeError: an integer is required (got type bytes)
===============================
anaconda是一個非常好用的python發行版本,其中包含了大部分常用的庫。
最新的anaconda中python版本已經更新到了python3.6,而tensorflow只支援python3.5。
在anaconda官網中已經給了三種解決方案:
https://docs.anaconda.com/anaconda/faq#how-do-i-get-anaconda-with-python-3-5
方法一:在現有的anaconda中新建一個python3.5的開發環境,這樣同時保留了python3.6。
方法二:直接將現有的anaconda中python更改為3.5,
開啟終端,執行指令:sudo conda install python=3.5
就好了。
方法三:下載並安裝anaconda4.2
https://repo.continuum.io/archive/
注意選擇anaconda3的版本。
相關文章
- python用pyinstaller生成exe時報錯 TypeError: an integer is required (got type bytes)PythonErrorUIGo
- Python報錯:TypeError: a bytes-like object is required, not ‘str‘PythonErrorObjectUI
- yolov5 train報錯:TypeError: expected np.ndarray (got numpy.ndarray)YOLOAIErrorGo
- npm報錯 TypeError [ERR_INVALID_ARG_TYPE]: The “path“ argument must be of type string.Received undefineNPMError
- TypeError: can‘t concat str to bytesError
- pycharm + anacondaPyCharm
- "Got a packet bigger than 'max_allowed_packet' bytes"錯誤解決辦法Go
- vue報錯:[Vue warn]: Invalid prop: type check failed for prop "value". Expected Number, got String....VueAIGo
- js報錯:TypeError: Date is not a constructorJSErrorStruct
- TypeError: Object of type ‘datetime‘ is not JSON serializableErrorObjectJSON
- anaconda 設定代理
- Pycharm 設定PyCharm
- pycharm import 報錯PyCharmImport
- TypeError: only integer scalar arrays can be converted to a scalar indexErrorIndex
- TypeError: The ‘compilation‘ argument must be an instance of Compilation 報錯Error
- python-pycharm報錯PythonPyCharm
- pycharm+anaconda環境建立PyCharm
- 1.python報錯:TypeError: 'int' object is not subscriptablePythonErrorObject
- Android switch語句報錯Constant expression requiredAndroidExpressUI
- pycharm如何設定背景PyCharm
- Pycharm 基礎設定PyCharm
- 如何解決pycharm報錯PyCharm
- pytorch 踩坑,TypeError: expected seqence object with len>_0 or a single integer_typeerror: expected sequence object with len __ 0PyTorchErrorObject
- Mac 中 PyCharm 配置 Anaconda環境MacPyCharm
- pycharm配置anaconda虛擬環境PyCharm
- Pycharm,Python 3 與 Type HintsPyCharmPython
- pod install命令後tool 'xcodebulid' required Xcode...錯誤XCodeUI
- querydsl報錯: Attempt to recreate a file for type
- React報錯之Element type is invalidReact
- Python成功解決TypeError: __init__() missing 1 required positional argument: ‘comment‘PythonErrorUI
- Tensorflow Keras load_model報錯got an unexpected keyword argument ‘ragged‘KerasGo
- 解決 TypeError: Type aliases cannot be used with isinstance(). 辦法Error
- SAP MRKO Error - For document type RE, an entry is required in field Reference -ErrorUI
- el-tree 報錯 TypeError: Cannot read property ‘setCheckedKeys‘ of undefined“ErrorUndefined
- 【配置】Mac 中 PyCharm 配置 Anaconda環境MacPyCharm
- Anaconda Pycharm 是怎麼個事兒?PyCharm
- 直接用 appium 可以連線真機,用 pycharm 執行指令碼時報錯 “'platformVersion' must be of type string”APPPyCharm指令碼Platform
- PXE遠端CentOS安裝anaconda報錯CentOS