How to solve the problem of python virtualenv error
This article mainly explains "how to solve the python virtualenv error report". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn "how to solve python virtualenv error reporting".
After installing virtualenv in python, calling the command reported an error, and the corresponding command could not be found.
[root@mysql-server ~] # virtualenv
-bash: virtualenv: command not found
[root@mysql-server ~] # find /-name virtualenv
/ usr/local/python36/bin/virtualenv
# uses CentOS version 6.3, which has not been found in other new Linux versions before.
# solution: use the full path to create a virtual environment.
[root@mysql-server data1] # / usr/local/python36/bin/virtualenv venv4archer
Using base prefix'/ usr/local/python36'
New python executable in/ data1/venv4archer/bin/python3.6
Also creating executable in/ data1/venv4archer/bin/python
Installing setuptools, pip, wheel...done.
[root@mysql-server ~] # cat / etc/redhat-release
CentOS release 6.3 (Final)
At this point, I believe you have a deeper understanding of "how to solve python virtualenv errors". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!