安装Anaconda3
新建环境
conda create -n p python=3.6
安装tensorflow-gpu
添加链接描述
1、安装cudatoolkit
conda install cudatoolkit=9.0
2、安装tensorflow
pip3 install tensorflow-gpu==1.8.0
安装pytorch-gpu
添加链接描述
1、安装cudatoolkit
conda install cudatoolkit=9.0
2、安装pytorch
conda install pytorch torchvision cudatoolkit=9.0 -c pytorch
SCREEN安装
添加链接描述
sudo apt-get update
##PKU环境
https://blog.csdn.net/qq_35494379/article/details/105603832
豆瓣源
pip install pyinstaller -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
清华源
pip --default-timeout=100 install 库名称 -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
Solving environment: failed
CondaHTTPError: HTTP 000 CONNECTION FAILED for url https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/noarch/repodata.json
Elapsed: -
An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.
SSLError(MaxRetryError(‘HTTPSConnectionPool(host=‘mirrors.tuna.tsinghua.edu.cn’, port=443): Max retries exceeded with url: /anaconda/pkgs/free/noarch/repodata.json (Caused by SSLError(SSLError(“bad handshake: Error([(‘SSL routines’, ‘ssl3_get_server_certificate’, ‘certificate verify failed’)],)”,),))’,),)
这个问题把https改成http
##安装torch_germotric遇到的问题
添加链接描述
添加链接描述
pip install torch-geometric不要用源 遇到比较大的包就另外下