简体   繁体   中英

Anaconda is not creating full environment

在此处输入图片说明

I'm trying to create a conda environment using git-bash and win10. I ran:

$ conda create --name my_env

The result looks like the screenshot above.

Looking at other environments , I can see they normally look like:

在此处输入图片说明

How can I fix this?

To create the environment with the Python executable, use one of:

conda create --name my_env python  # latest available python version
conda create --name my_env python=3.7  # specific python version

Without specifying packages, ie python as above, conda just doesn't install anything at all in my_env environment.


You can alternatively install the Python interpreter after environment creation. For a list of installable Python versions, run conda search "^python$" .

conda install python  # latest available python version
conda install python=3.7  # specific python version

You have to use this to get all of the Anaconda default packages:

conda create --name my_env anaconda

Otherwise, it doesn't install everything.

Everytime you set up a new venv with conda and want to have the python.exe file on the new venv you must run the following script:

conda install pip

Then just follow the indications and that's it!.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM