简体   繁体   中英

Conda install many packages when I install python=3.8

I try to create an empty anaconda environment in order to install the requirements.txt file of a project.

I use the following command line:
conda create --name lsg --no-default-packages
conda install python=3.8

When I install python 3.8, conda installs many packages such as pandas==1.2.3 , scikit-learn==0.24.1 or seaborn==0.11.1 and also some local packages such as lsg==1.0 . Which is not what I want...

Do you know where this error can come from and how to solve it?

EDIT:
Here, you can find a sample of all the pacakges downloaded when Python 3.8 is install. It is much more than the default packages such as pip .

包

It looks like conda install all packages from my base environment

You can simply define the python version for the conda environment you are creating by mentioning the version of the package.

conda create --name lsg --no-default-packages python=3.8

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