Get the App
SLTechnology News&Howtos  ›  Development  › 

How to solve the problem of python virtualenv error

Shulou Source: shulou.com Published: 2022-06-02 11:48:34 10月01日 Update

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!

Tags: Content command method version learning practical deeper interest practical easy to operate more friends environment website path question channel query Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple MariaDB Redmi Microsoft Linux