文章目录
安装pycharm
进pycharm官网下载community版本pycharm(免费)
将安装包移至安装目录下,图形界面解压缩或者命令行
tar -xvzf pycharm-community-2018.1.tar.gz
然后
cd Downloads/pycharm-2018.1.4/bin
运行
sh pycharm.sh
完成安装后任意新建一个工程文件夹,将软件附着在任务栏即可。
安装anaconda3
进anaconda官网下载python3对应版本或者在国内开源镜像站下载(这样比较快)
历史版本查看https://repo.anaconda.com/archive/
5.3及其以上均为python3.7版本,用conda方法安装tensorflow1.13.1以下版本时由于不支持python3.7需要退回到python3.6版本,可能导致conda软链接失效,此时建议安装5.2版本。tensorflow1.15以上版本需要安装对应python3.7的anaconda。
bash Anaconda3-5.2.0-Linux-x86_64.sh
警告: 不要以sudo权限安装!
按提示安装,完成后运行
sudo gedit ~/.bashrc
添加
export PATH="/home/<username>/anaconda3/bin:$PATH"
之后source ~/.bashrc
完成安装。
pip修改镜像源
mkdir ~/.pip
sudo vim ~/.pip/pip.conf
添加
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host = https://pypi.tuna.tsinghua.edu.cn
PS:有图形界面可用gedit打开直接复制粘贴
conda修改镜像源
添加清华镜像源
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
移除镜像源用--remove
指令
中科大镜像源为conda config --add channels https://mirrors.ustc.edu.cn/anaconda/pkgs/free/
换回默认镜像源
conda config --re