python安装笔记

更新pip:

python -m pip install --upgrade pip -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

 

conda创建和删除虚拟环境:

conda create -n tf2 pip python=3.6.10

conda remove -n tf2 --all 

 

使用tensorboard:

tensorboard --logdir=./callbacks --host=127.0.0.1

 

conda添加镜像源:

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/

 

安装常用的库:

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

python -m pip install  ipython -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

python -m pip install  pandas -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

python -m pip install keras==2.1.5 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

python -m pip install gast==0.2.2 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

python -m pip install  matplotlib -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

python -m pip install  sklearn -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

python -m pip install  jupyter -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

python -m pip install  h5py -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

python -m pip install  numpy -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

python -m pip install  pydot -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

python -m pip install  pydot-ng -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

python -m pip install python-graphviz -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

python -m pip install Pillow -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

python -m pip install scipy==1.2.1 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

python -m pip install opencv-python -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

python -m pip install web-py -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

python -m pip install msgpack -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

python -m pip install music21 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

python -m pip install emoji -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

python -m pip install Faker -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

python -m pip install playsound -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

python -m pip install tqdm-i http://pypi.douban.com/simple --trusted-host pypi.douban.com

python -m pip install Package-i http://pypi.douban.com/simple --trusted-host pypi.douban.com

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn tqdm

python -m pip install babel-i http://pypi.douban.com/simple --trusted-host pypi.douban.com

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn babel

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn pydub

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn package

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn pydub

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn nltk

python -m pip install image-i http://pypi.douban.com/simple --trusted-host pypi.douban.com

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn image

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn chainer

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn scikit-image

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn python_speech_features

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn librosa

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn ffmpeg

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn spyder

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn addict

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn torchtext

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn tensorflow_datasets

pip install -U https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn spacy

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn sxtwl

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn pyqt5

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn pyinstaller

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn requests

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn bs4

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn selenium

pip install Twisted-20.3.0-cp37-cp37m-win_amd64.whl

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn pywin32

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn scrapy

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn pymysql

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn python==3.6.0

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn exifread

python -m  spacy download en -i ttp://pypi.douban.com/simple --trusted-host pypi.douban.com

pip install keras==2.1.5 -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

conda install tensorflow-gpu==2.1.0

pip install pandas==0.25.3 -i https://pypi.tuna.tsinghua.edu.cn/simple/

 

conda clean -p      //删除没有用的包

conda clean -t      //删除tar包

conda clean -y -all //删除所有的安装包及cache

 

pyqt输出为exe:

pyinstaller.exe -F -w D:\pyproject\对话框\LGBF_GUI.py

pyinstaller.exe -F -w D:\pyproject\UI\GUI.py

pyinstaller.exe -F D:\pyproject\电机测试GUI\GUI.py

pyinstaller.exe -F D:\pyproject\UI\GUI.py

 

posted @ 2021-05-27 15:07  蘑菇王国大聪明  阅读(135)  评论(0编辑  收藏  举报