An error occurred while installing the virtual environment using python of Anaconda: python, anacondapython

Source: Internet
Author: User
Tags virtual environment

An error occurred while installing the virtual environment using python of Anaconda: python, anacondapython

When creating a python virtual environment, if you are using the python-m venv venvdir integrated in Anaconda, the pip cannot be installed because Anaconda does not have ensurepip,

The solution is to use python-m venv -- without-pip venv to create a virtual environment without pip, and then start the virtual environment to install pip;

Python-m venv -- without-pip venv: it can be created successfully.

However, if you do not install pip in a virtual environment, the default pip is used in the virtual environment.

The following is an explanation of the -- without-pip parameter of venv:

-- Without-pip Skips installing or upgrading pip in the virtual environment (pip is bootstrapped by default)

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.