# # pre-requirements (use python3.5 for better compability) # sudo apt-get install python3.5 python3.5-dev # sudo apt-get install python3-tk # # # pip # sudo apt-get install python-pip python3-pip # pip install pip -U # pip config set global.index-url 'https://mirrors.aliyun.com/pypi/simple/' # # or write following to '~/.config/pip/pip.conf' # [global] # timeout = 6000 # index-url = https://mirrors.aliyun.com/pypi/simple/ # # Install virtualenv by pip # pip install setuptools # pip install virtualenv # pip install virtualenvwrapper # pip install virtualenvwrapper-win #Windows使用该命令 # # Add following lines to `~/.bashrc` # # virtualenv # export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3 # export WORKON_HOME=/home/bushuhui/virtualenv # source /usr/local/bin/virtualenvwrapper.sh # # # Usage: # # create virtual env # mkvirtualenv --python=/usr/local/python3.5.3/bin/python venv # # # active virtual env # workon venv # # # Install this list packages: # pip install -r requirements.txt # Save package list # pip freeze >> requirements.txt attrs==19.1.0 backcall==0.1.0 bleach==3.1.0 certifi==2019.6.16 chardet==3.0.4 cycler==0.10.0 decorator==4.4.0 defusedxml==0.6.0 entrypoints==0.3 fire==0.2.1 idna==2.8 ipdb==0.12.2 ipykernel==5.1.2 ipython==7.8.0 ipython-genutils==0.2.0 ipywidgets==7.5.1 jedi==0.15.1 jieba==0.39 Jinja2==2.10.1 joblib==0.13.2 jsonschema==3.0.2 jupyter==1.0.0 jupyter-client==5.3.1 jupyter-console==6.0.0 jupyter-core==4.5.0 kiwisolver==1.1.0 MarkupSafe==1.1.1 matplotlib==3.0.3 mistune==0.8.4 nbconvert==5.6.0 nbformat==4.4.0 notebook==6.0.1 numpy==1.17.1 pandas==0.24.2 pandocfilters==1.4.2 parso==0.5.1 patsy==0.5.1 pexpect==4.7.0 pickleshare==0.7.5 Pillow==6.1.0 prometheus-client==0.7.1 prompt-toolkit==2.0.9 ptyprocess==0.6.0 Pygments==2.4.2 pyparsing==2.4.2 pyrsistent==0.15.4 python-dateutil==2.8.0 pytz==2019.2 pyzmq==18.1.0 qtconsole==4.5.5 requests==2.22.0 scikit-learn==0.21.3 scipy==1.3.1 Send2Trash==1.5.0 six==1.12.0 sklearn==0.0 statsmodels==0.10.1 termcolor==1.1.0 terminado==0.8.2 testpath==0.4.2 torch==1.2.0 torchfile==0.1.0 torchvision==0.4.0 tornado==6.0.3 tqdm==4.35.0 traitlets==4.3.2 urllib3==1.25.3 visdom==0.1.8.8 wcwidth==0.1.7 webencodings==0.5.1 websocket-client==0.56.0 widgetsnbextension==3.5.1