Python anaconda pycharm2019.2.1的安裝鏈接:
鏈接:https://pan.baidu.com/s/1XcRFYbCLadES4lwnrvFtcw
提取碼:1234
Python 安裝包的方法:
Python包下載庫:https://www.lfd.uci.edu/~gohlke/pythonlibs/
解決網速慢的問題
問題描述:(https://www.jianshu.com/p/3378fa827924)pip._vendor.urllib3.exceptions.ReadTimeoutError:HTTPSConnectionPool(host='pypi.tuna.tsinghua.edu.cn
解決方法(重要):
pip install --default-timeout=100 -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python
正常網速(清華鏡像):
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple opencv-python
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 國內鏡像
% http://pypi.douban.com/simple/ 豆瓣
% http://mirrors.aliyun.com/pypi/simple/ 阿里
% http://pypi.hustunique.com/simple/ 華中理工大學
% http://pypi.sdutlinux.org/simple/ 山東理工大學
% http://pypi.mirrors.ustc.edu.cn/simple/ 中國科學技術大學
% https://pypi.tuna.tsinghua.edu.cn/simple 清華
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
問題描述(https://www.cnblogs.com/xiaoyinyue/p/8490595.html):
pip安裝出現Fatal error in launcher: Unable to create process using '"'的解決辦法
解決方法:系統中可能有多處安裝pip,且均加入到了環境變量中;刪去不用的pip文件夾
where pip
Pytorch安裝方法
按照以下命令執行按照pytorch(刪去之前的pytorch)
pip uninstall torch
pip uninstall torchvision
(安裝新包)pip install torch===1.3.1 torchvision===0.4.2 -f https://download.pytorch.org/whl/torch_stable.html(安裝速度並不慢)
安裝包下載網址:https://www.lfd.uci.edu/~gohlke/pythonlibs/或者https://pypi.org/project/requests/
https://www.cnblogs.com/hackpig/p/8110986.html
安裝包的方法:
1首先把路徑索引指到Python安裝路徑 :win+R 再輸入cmd例如我的是D:\Python\Python36(I:\Python\Python)
2 用pip install 安裝包 要首先知道包的位置,例如我的包在F:\python_work:
然后加上反斜杠,復制包的名稱
用conda裝
conda install XXX
conda uninstall XXX
Pip show XXX #查看包是不是已安裝
tensorflow 1.15.3、2.3.1的安裝方法.2020.11.20:
ERROR: Could not find a version that satisfies the requirement tensorflow==1.19 (from versions: 1.13.0rc1, 1.13.0rc2, 1.13.1, 1.13.2, 1.14.0rc0, 1.14.0rc1, 1.14.0, 1.15.0rc0, 1.15.0rc1, 1.15.0rc2, 1.15.0rc3, 1.15.0, 1.15.2, 1.15.3, 1.15.4, 2.0.0a0, 2.0.0b0, 2.0.0b1, 2.0.0rc0, 2.0.0rc1, 2.0.0rc2, 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.1.0rc0, 2.1.0rc1, 2.1.0rc2, 2.1.0, 2.1.1, 2.1.2, 2.2.0rc0, 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0, 2.2.1, 2.3.0rc0, 2.3.0rc1, 2.3.0rc2, 2.3.0, 2.3.1, 2.4.0rc0, 2.4.0rc1, 2.4.0rc2, 2.4.0rc3, 2.4.0rc4, 2.4.0)
pip install --default-timeout=100 -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow==1.15.3
pip install --default-timeout=100 -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow==2.1.0
pip install --default-timeout=100 -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow-gpu==2.1.0
pip install --default-timeout=100 -i https://pypi.tuna.tsinghua.edu.cn/simple tensorflow==2.3.1(報錯)
(報錯如下:tf.keras.layers.Dense(1, input_shape=(1,))->->->->:tensorflow.python.framework.errors_impl.InvalidArgumentError: assertion failed: [0] [Op:Assert] name: EagerVariableNameReuse,可以安裝tf2.1.0解決)
pip install --default-timeout=100 -i https://pypi.tuna.tsinghua.edu.cn/simple scipy
pytorch安裝方法:強烈建議使用anaconda安裝!!!
(必須有英偉達的cuda都行,要安裝對應cuda的pytorch版本(因為這是pytorch官網的截圖,pytorch只有cuda9.2,10.1,10.2,11.0和none版本的,電腦沒有用gpu一定要選擇none))
查看cuda版本的方法:右鍵打開NVIDIA控制面板》幫助》系統信息》組件》NVCUDA.DLL可以查看cuda的版本,我的是10.2.95 driver版本的
然后打開anaconda(Anaconda Prompt)的后台在后台輸入安裝指令,安裝指令可以從pytorch官網(pytorch.org)得到
安裝好即可在pycharm中使用。