Problem Description: When using pip command to install refo==0.13 version, it will show that it is installed as 0.12 version because 0.13 version only has .tar.gz file and no whl file, pip installation will select 0.12 version, while manually downloading 0.13 version .tar.gz file and installing offline, it will report an error, the following is the process of the problem.
Requirement: install refo==0.13 version
pip install refo
#It will automatically install 0.12, because 0.13 does not have xhl files
pip install refo==0.13
#Error in REfO setup command: use_2to3 is invalid.
error in REfO setup command: use_2to3 is invalid.
# Download the 0.13 .tar.gz file and install it offline with the same error.
error in REfO setup command: use_2to3 is invalid.
Check the data and the problem is:
setuptools>= 58
interrupt support use_2to3
:
setuptools should be updated to
setuptools<Version 58 or avoid
using use_2to3
set the package in the parameters.
Solution: Execute the following command:
pip install setuptools==56.0.0
#After execution, setuptools will automatically fall back to version 56.0.0
Then just install the refo==0.13 version.tar.gz file offline
Supplement the contents of the third-party package for offline installation:
Python third-party library download website Python third-party library
.whl file installation.
Go to the directory of the above whl file from the command line interface in one of the environments under anaconda where the library needs to be installed
Install the library using the command: pip install xxxxx.whl
.tar.gz file installation.
From the command line interface, go to the above extracted directory in the environment where the library is to be installed under anaconda
Use the command: python setup.py install
Read More:
- [Solved] error in pycallgraph setup command: use_2to3 is invalid.
- [Solved] Run sudo python setup.py install Error: error: error in setup.cfg: command ‘build‘ has no such option ‘i18
- [Solved] Ubuntu18.04 Install pyqt5 error: Command “python setup.py egg_info“ failed with error code 1 in /tmp/pip-build-92
- [Solved] Command “python setup.py egg_info” failed with error code 1
- Command “/usr/bin/python -u -c “import setuptools, tokenize;__file__=‘/tmp/pip-cus9V0-build/setup.py
- [Solved] command “python setup.py egg_info“ failed with error code 1
- Xadmin Install Error: Command “python setup.py egg_info“ failed with error code 1 in C:\Users\ADMINI~1\AppDat
- Pip3 install Mysqlclient Error: Command “python setup.py egg_info“ failed with error
- [Solved] PyCharm pytest-html Install Error: Try to run this command from the system terminal. Make sure that you use
- [Solved] Python setup.py install Error: error: identifier “AT_CHECK“ is undefined
- Opencv-python Install is Stuck Error: running setup.py bdist_wheel for opencv-python
- Pychar can’t connect to Python console, but it can run. Py file, and Anaconda’s command line can run Python command
- How to Fix Errors encountered in executing Python scripts with command line parameters
- [Solved] Error when installing pycurl in MAC: Command ‘clang’ failed with exit status 1
- To silence this warning, use `float` by itself. Doing this will not modify any behavior and is safe.
- [Solved] Pycharm Use pip Error: Script file ‘D:\Anaconda3\envs\pytorch\Scripts\pip-script.py‘ is not present
- [Solved] Pymysql Use Error: RuntimeError: ‘cryptography‘ package is required for sha256_password
- RuntimeError: Address already in use [How to Solve]
- [Solved] Failed to install PIP for MacOS, prompt: syntax error: invalid syntax