for the python that comes with the system, vanilla python. We tend to select virtualenv for installation, but if the system’s default python environment is shipped with anaconda, the following error
pops out when executing the command
setuptools pip wheel failed with error code 1
for python on Anaconda, how do we set up a virtual environment?There are two ways.
1. Using conda to install virtualenv, execute the following command
PIP uninstall virtualenv
conda install virtualenv
virtualenv YourVirtualEnvName
this method is available for pro test.
bis. Conda comes with the function of creating virtual environment
-
check whether conda has
installed
conda -V
-
check if conda has been updated to the latest version
conda update conda
Blockquote>
-
create virtual environment
conda cret-n YourVirtualEnvName python= X.X.X anaconda
this X.X.X is a version of python that can be used by using the commandconda search "^python$"
. -
activate virtual environment
source activate YourVirtualEnvName
-
install third-party package
conda install -n YourVirtualEnvName [Package]
if-n YourVirtualEnvName
is not added, the installation will executeunder system python
Blockquote> -
inactivated virtual environment
source deactivate
Blockquote>
-
delete virtual environment
conda remove -n YourVirtualEnvName -all
Read More:
- Solve the problem of Python in Windows environment: Fatal error in launcher: Unable to create process using’”‘ in pip installation
- (Copy python package, the problem generated) pip Fatal error in launcher: Unable to create process using
- Solve the problem of failed to create the Java virtual machine when eclipse is opened
- pygobject pip3 upgrade problem: ERROR: Failed building wheel for pycairo
- Install anaconda error: failed to create anaconda menus
- The Python PIP installation module prompts the error failed to create process
- Failed to create Anaconda Menus
- Anaconda create environment, delete environment, activate environment, exit environment
- PIP report failed to create process
- Solving environment: failed solution to the problem encountered when updating Anaconda
- About the problem of calling tools library by running Python program under Mac OS X, modulenotfoundererror: no module named ‘tools‘
- The problem of failed to create process occurs in pyinstaller package program of Python
- Command “python setup.py egg_info” failed with error code 1 in /private/var/folders/14/4hz051qx0wqd3
- Solve the problem of unable to locate package python3.6 when upgrading from python3.5 to python3.6 in ubantu16.04
- Anaconda returns Python 3.7 to Python 3.6
- Anaconda + vscode usage problem summary
- Building wheel for vrep-api-python (setup.py) … error ERROR: Command errored out with exit statu
- Error encountered while executing PIP install: error: complete output from command Python setup.py egg_ info:
- Solve the problem of garbled code when Python connects to ADB
- Mac install pycurl error: python setup.py egg_info" failed with error code 1”