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
- pycharm + anacondaPyCharm
- TypeError: can‘t concat str to bytesError
- js報錯:TypeError: Date is not a constructorJSErrorStruct
- 解決MySQL資料匯入報錯Got a packet bigger than‘max_allowed_packet’bytesMySqlGo
- pycharm import 報錯PyCharmImport
- java 反射 報錯:Attempt to get java.lang.Integer field "..." with illegal data type conversion to intJava反射
- Pycharm 設定PyCharm
- vue報錯:[Vue warn]: Invalid prop: type check failed for prop "value". Expected Number, got String....VueAIGo
- anaconda 設定代理
- TypeError: only integer scalar arrays can be converted to a scalar indexErrorIndex
- "Got a packet bigger than 'max_allowed_packet' bytes"錯誤解決辦法Go
- 如何解決pycharm報錯PyCharm
- python-pycharm報錯PythonPyCharm
- TypeError: Object of type ‘datetime‘ is not JSON serializableErrorObjectJSON
- pycharm+anaconda環境建立PyCharm
- 1.python報錯:TypeError: 'int' object is not subscriptablePythonErrorObject
- pycharm如何設定背景PyCharm
- Pycharm 基礎設定PyCharm
- TypeError: The ‘compilation‘ argument must be an instance of Compilation 報錯Error
- js 函式報錯“Uncaught: TypeError xxx is not a function”JS函式ErrorFunction
- Mac 中 PyCharm 配置 Anaconda環境MacPyCharm
- pycharm配置anaconda虛擬環境PyCharm
- pytorch 踩坑,TypeError: expected seqence object with len>_0 or a single integer_typeerror: expected sequence object with len __ 0PyTorchErrorObject
- 設定CURRENT_SCHEMA後獲取執行計劃報錯
- 更新xcode8後真機除錯報code signing is required for product type 'xxxxx' in SDK 'iOS 10.0'XCode除錯UIiOS
- Mysql提示 “ Got a packet bigger than 'max_allowed_packet' bytes”MySqlGo
- TypeError:a.replaceisnotafunction錯誤ErrorFunction
- Anaconda Pycharm 是怎麼個事兒?PyCharm
- 【配置】Mac 中 PyCharm 配置 Anaconda環境MacPyCharm
- Android switch語句報錯Constant expression requiredAndroidExpressUI
- PXE遠端CentOS安裝anaconda報錯CentOS
- Pycharm,Python 3 與 Type HintsPyCharmPython
- Qt 報錯 “類名”does not name a typeQT
- React報錯之Element type is invalidReact