当前位置:网站首页>Anaconda pyhton multi version switching

Anaconda pyhton multi version switching

2022-07-05 07:28:00 work-harder

need python Multiple versions play different modules , Record some roads ( Personal encounter ) Small pit of .

The phenomenon :
1. win 10, conda 4.9, default python 3.8.3
2. conda create --name python35 python=3.5 Build a low version
3. win10 Of power shell Lower activation python35 You don't succeed
    PS c:\anaconda3> python --veresion (python 3.8.3)
    PS c:\anaconda3> activate python 35 ( No hint )
    PS c:\anaconda3> python --veresion ( still python 3.8.3)

solve :
1. Use anaconda prompt or anaconda power shell ( In the list after clicking the start icon in the lower left corner )
2. After entering, the interface displays the currently used environment name , such as
    (base) C:\
    (base) C:\ python --version (python 3.8.3)
    (base) C:\ activate python35 ( (python35) C:\ It has changed )
    (base) C:\python --version (pytho 3.5.6)
3. stay c:\anaconda3\envs Next , You can see python35 Folder , 
4. stay c:\anaconda3\envs\python35\Lib\site-packages\django\__init__.py in , Can verify 1.8 edition
5. conda deactivate, Return to the default version (base)
 

原网站

版权声明
本文为[work-harder]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202140555475867.html