Pycharm: Error TypeError: an integer is required (got type bytes) after setting Anaconda

tags: Python

Background: After installing the latest version of Anaconda 3.9, after setting Python Interpreter in Pycharm to python.exe under the latest version of Anaconda file, the console fails to start and an error TypeError: an integer is required (got type bytes) is reported

===============================

Anaconda is a very easy to use python distribution, which contains most of the commonly used libraries.

The python version in the latest anaconda has been updated to python3.6, and tensorflow only supports python3.5.

Three solutions have been given in the anaconda official website:

https://docs.anaconda.com/anaconda/faq#how-do-i-get-anaconda-with-python-3-5


Method 1: Create a python3.5 development environment in the existing anaconda, so that python3.6 is retained at the same time.



Method 2: directly change the existing python in anaconda to 3.5,

Open the terminal and execute the command: sudo conda install python=3.5

Enough.

Method 3: Download and install anaconda4.2

https://repo.continuum.io/archive/

Note that the version of anaconda3 is selected.

Intelligent Recommendation

python: Use PyInstaller packaged into exe files, and TypeError: an integer is required (got type bytes) exception resolution

python: Use PyInstaller packaged into exe files, and TypeError: an integer is required (got type bytes) exception resolution 2019-11-12 15:50:22 lad. Read the article tag number 225: python package ex...

Python: Use PyInstaller to package into an exe file, and TypeError: an integer is required (got type bytes) exception resolution

Using Python 3.6 or above to use pyinstaller for packaging will result in a TypeError: an integer is required (got type bytes) exception. The solution and installation pyinstaller tutorial are as foll...

Python3.8 uses scikit-learn0.20.2 Times Wrong Typeerror: an Integer is Required (got type bytes)

I must record this problem, because I have gone too much road, spend too much time! Problem Description: When the brother's project is placed on his computer, no module name 'error appears, after seve...

When importing the Sklearn library, encounter TypeError: an integer is required (got type bytes)

When importing the Sklearn library, encounter TypeError: an integer is required (got type bytes) First check your Sklearn version, when you install Sklearn, if you use the following PIP command, you m...

TypeError: an integer is required (got type str)? Solution

Code: An error was encountered when opening files The following code changes to solve the problem The specific reasons unknown, seeking answers to big brother...

More Recommendation

【Python】TypeError: an integer is required (got type str)

Problems encountered in debugging code today TypeError: an integer is required (got type str) problem causes In the open function of the open file object in python3, the following is the wrong way of ...

TypeError: an integer is required (got type str)

This is type alone What is needed is an int type, but input is a STR type  ...

TypeError: an integer is required (got type is tuple)

TypeError: an integer is required (got type is tuple), This error. To understand it literally, you need to obtain a integer data, and the original code is the tuple. What needs to be done is to change...

Pycharm, the solution to use Python Cyperror: An Integer Is Required (GOT TYPE BYTES) (Python3.8)

Solution, I will not copy it anymore refer toPycharm, use Python Cyperror: An Integer Is Required (GOT TYPE BYTES) solution (python3.8) _WWWWHY_ Blog-CSDN blog Before after   Can use console norm...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top