0x1. 如何查看已经安装的包
pip list
0x2. 如何安装Anaconda
-
- chmod u+x Anaconda3-4.3.0-Linux-x86_64.sh
-
- ./Anaconda3-4.3.0-Linux-x86_64.sh
-
- input yes/enter/confirm the environment path to ~/.bashrc
The install path:
- input yes/enter/confirm the environment path to ~/.bashrc
# added by Anaconda3 4.3.0 installer
export PATH="/home/cxl/anaconda3/bin:$PATH"
0x3. 环境变量
~/.bashrc
export ANDROID_NDK_HOME=/home/cxl/android/android-ndk-r10
export ANDROID_SDK_HOME=/home/cxl/android/adt-bundle-linux-x86_64-20140702/sdk
export PATH=$PATH:$ANDROID_NDK_HOME:$ANDROID_SDK_HOME/platform-tools:$ANDROID_SDK_HOME/tools
# added by Anaconda2 4.3.0 installer
export PATH="/home/cxl/anaconda2/bin:$PATH"
# added by Anaconda3 4.3.0 installer
export PATH="/home/cxl/anaconda3/bin:$PATH"
0x4. 切换python环境
修改~/.bashrc中下面的环境变量,确保有一个生效.
# added by Anaconda2 4.3.0 installer
export PATH="/home/cxl/anaconda2/bin:$PATH"
# added by Anaconda3 4.3.0 installer
export PATH="/home/cxl/anaconda3/bin:$PATH"
0x5. Anaconda中安装pythona依赖包
conda install scrapy