anaconda different conda command

@anaconda not the same conda command

Installation Environment

python 3.7.3 + anaconda

reason

  1. Tsinghua source can not be used
  2. USTC source can not be used
    ...
    unexpected parameters painful learning emerged ..

Assistant next group of gall to share a pit .....

新人在操作anaconda时,使用conda craete创建虚拟环境,如不指定python版本或者指定版本和内置base一致,那么在conda目录envs文件夹下仅会生成一个conda-meta文件夹,导致vscode在设置pythonpath时并不能准确定位到解释器。
处理方式:
使用clone命令来创建

conda create -n py3 --clone base

此命令将完整克隆base至新虚拟环境,快乐的activate py3去pip吧,vscode的pythonPath也

My anaconda this waste ...

Uninstall - reinstall - reconfigurable

  1. Uninstall the original installation package anaconda go to the official website to download a new package of it

  2. conda Sao operation can not be used, after all, the official has spoken ...

This time the turn of the pip debut, still recommend Tsinghua source

https://mirror.tuna.tsinghua.edu.cn/help/pypi/

This step requires cmd run under administrator privileges

Steps

  1. cmd command line to run

Set the default
upgrade pip after the latest version (> = 10.0.0) to be configured:

pip install pip -U

`pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

  1. Tsinghua mirror source used increases

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip -U

  1. Test the installation

Installation test scrapy

ERROR: Command "'c:\anaconda3\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\1\\pip-install-mfhmq9ut\\twisted\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\ADMINI~1\AppData\Local\Temp\1\pip-record-ycs7v663\install-record.txt' --single-version-externally-managed --compile" failed with error code 1 in C:\Users\ADMINI~1\AppData\Local\Temp\1\pip-install-mfhmq9ut\twisted\

It is given ....

Manually install twisted

  1. Download module corresponding twisted
    https://www.lfd.uci.edu/~gohlke/pythonlibs/

  2. Find the appropriate python version

  3. Saved to a local path, where the disk storage C

  4. Enter the specified environment installation (not specified will complain)

pip version to the latest version of yo

Test your scrapy it

Guess you like

Origin www.cnblogs.com/lataku/p/10994710.html