VIRTUALENV installation and use of Python virtual environment __python

Source: Internet
Author: User
Tags symlink virtual environment virtualenv

Install the virtual environment using the PIP install Virtualenv, after installation,

Perform virtualenv django_test to create a virtual environment that occurs when you create an error such as ASCII below

G:\>virtualenv Test
New python executable in Test\scripts\python.exe
Installing Setuptools, Pip, Wheel ...
Complete output from command G:\test\Scripts\python.exe-c "import sys, PIP;" S
Ys...d\ "] + sys.argv[1:])" Setuptools pip wheel:
Ignoring indexes:https://pypi.python.org/simple
Collecting Setuptools
The repository located at None of a trusted or secure host and is being IG
Nored. If This repository was available via HTTPS it is recommended to use HTTPS
Instead, otherwise you silence this warning and allow it anyways with '--tru
Sted-host None '.
The repository located at None of a trusted or secure host and is being IG
Nored. If This repository was available via HTTPS it is recommended to use HTTPS
Instead, otherwise you silence this warning and allow it anyways with '--tru
Sted-host None '.
The repository located at None of a trusted or secure host and is being IG
Nored. If This repository was available via HTTPS it is recommended to use HTTPS
Instead, otherwise you silence this warning and allow it anyways with '--tru
Sted-host None '.
The repository located at None of a trusted or secure host and is being IG
Nored. If This repository was available via HTTPS it is recommended to use HTTPS
Instead, otherwise you silence this warning and allow it anyways with '--tru
Sted-host None '.
The repository located at None of a trusted or secure host and is being IG
Nored. If This repository was available via HTTPS it is recommended to use HTTPS
Instead, otherwise you silence this warning and allow it anyways with '--tru
Sted-host None '.
The repository located at None of a trusted or secure host and is being IG
Nored. If This repository was available via HTTPS it is recommended to use HTTPS
Instead, otherwise you silence this warning and allow it anyways with '--tru
Sted-host None '.
Could not find a version this satisfies the requirement setuptools (from Versi
ONS:)
No matching distribution found for Setuptools
----------------------------------------
... Installing Setuptools, Pip, Wheel...done.
Traceback (most recent call last):
File "D:\program files\python27\scripts\virtualenv-script.py", line 9, in <mod
Ule>
Load_entry_point (' virtualenv==13.1.0 ', ' console_scripts ', ' virtualenv ') ()
File "D:\Program files\python27\lib\site-packages\virtualenv-13.1.0-py2.7.egg\
virtualenv.py ", line 832, in main
Symlink=options.symlink)
File "D:\Program files\python27\lib\site-packages\virtualenv-13.1.0-py2.7.egg\
virtualenv.py ", line 1004, in Create_environment
Install_wheel (To_install, py_executable, Search_dirs)
File "D:\Program files\python27\lib\site-packages\virtualenv-13.1.0-py2.7.egg\
virtualenv.py ", line 969, in Install_wheel
' Pip_no_index ': ' 1 '
File "D:\Program files\python27\lib\site-packages\virtualenv-13.1.0-py2.7.egg\
virtualenv.py ", line 910, in Call_subprocess
% (Cmd_desc, Proc.returncode))
Oserror:command G:\test\Scripts\python.exe-c "Import sys, PIP;" sys...d\ "] + sy
S.argv[1:]) "Setuptools PIP wheel failed with error code 1

Use the following statement to create a

Virtualenv Test--no-setuptools--no-pip--no-wheel

After the success of the creation

Use Test\scripts\activate to enter virtual environments

Note: Test is the address of the currently created virtual environment

The previous (test) and the corresponding directories will appear


Create complete

Use Exit to exit

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.