linux创建新的虚拟环境,并安装指定版本的包
- 1. 查看已有的虚拟环境
- 2. 创建新虚拟环境
- 3. 查看是否已经创建好了虚拟环境。
- 4. 启动环境
- 5. 直接安装需要的包的版本
- 5.1 服务器无法连接网络
- 5.2 网络连接正常
- (1)imageio
- (2)reedsolo
- (3)scipy
- (4)tqdm
- (5)numpy
- (6)Pillow
- (7)torch
- (8)torchvision
- (9)pytest-runner
- (10)pytest
- (11)pytest-cov
- (12)要求pip9.0.1,但是已经安装的是10.0.1的,需要对pip降级。
- (13)bumpversion
- (14)watchdog
- (14)m2r
- (15)Sphinx
- (16)sphinx_rtd_theme
- (17)flake8>=3.7.7
- (18)isort>=4.3.4
- (19)autoflake
- (20)autopep8>=1.4.3
- (21)twine>=1.10.0
- (22)wheel>=0.30.0
- (23)coverage>=4.5.1
- (24)tox>=2.9.1
- 5. 查看是否都安装好了
已经安装好了anaconda,之前的变量都配置好了,现在要创建一个新的虚拟环境。
1. 查看已有的虚拟环境
conda info -e
2. 创建新虚拟环境
conda create -n your_env_name python=X.X
python=X.X # 指定python版本2.7、3.6等
虚拟环境名字为your_env_name的
安装位置Anaconda安装目录envs。
删除虚拟环境
conda remove -n xxxxx(名字) --all
3. 查看是否已经创建好了虚拟环境。
cd ~/anaconda3/envs/
ls
出现第一步输入的:your_env_name
,就证明已经创好了。
4. 启动环境
source activate your_env_name # 需要cd ~/anaconda3/bin,环境变量PATH配置后可以 直接使用
conda activate your_env_name # root直接可以使用,非root权限加sudo
这里如果anaconda、cuda、cudnn没有安装的话,或者没有环境变量配置好,需要配一下。
可以参考教程【安装教程】——xshell服务器Ubuntu18.04安装anaconda、cuda、cudnn、pytorch
5. 直接安装需要的包的版本
5.1 服务器无法连接网络
有时候会遇到服务器没有网络的情况,这个时候直接pip install XXX就不行了,可以在另一台有网的电脑下载,或者U盘拷贝,要安装包的whl文件,直接上传到服务器上,然后pip install XXX.whl。
下载连接
5.2 网络连接正常
'imageio>=2.4.1,<2.5.0',
'reedsolo==0.3',
'scipy>=1.1.0,<1.2.0',
'tqdm>=4.28.1',
'numpy>=1.15.4<1.16.0',
'Pillow>=5.0.0,<8.0.0',
'torch>=1.0.0,<2.0.0',
'torchvision',
setup_requires = [
'pytest-runner>=2.11.1',
]
tests_require = [
'pytest>=3.4.2',
'pytest-cov>=2.6.0',
]
development_requires = [
# general
'pip>=9.0.1',
'bumpversion>=0.5.3,<0.6',
'watchdog>=0.8.3,<0.11',
# docs
'm2r>=0.2.0,<0.3',
'Sphinx>=1.7.1,<3',
'sphinx_rtd_theme>=0.2.4,<0.5',
# style check
'flake8>=3.7.7,<4',
'isort>=4.3.4,<5',
# fix style issues
'autoflake>=1.1,<2',
'autopep8>=1.4.3,<2',
# distribute on PyPI
'twine>=1.10.0,<4',
'wheel>=0.30.0',
# Advanced testing
'coverage>=4.5.1,<6',
'tox>=2.9.1,<4',
# Notebooks
'jupyter>=1.0.0,<2',
]
(1)imageio
pip install imageio==2.4.1
输出:
Collecting imageio==2.4.1
Downloading https://files.pythonhosted.org/packages/28/b4/cbb592964dfd71a9de6a5b08f882fd334fb99ae09ddc82081dbb2f718c81/imageio-2.4.1.tar.gz (3.3MB)
100% |████████████████████████████████| 3.3MB 5.4MB/s
Collecting numpy (from imageio==2.4.1)
Downloading https://files.pythonhosted.org/packages/b5/36/88723426b4ff576809fec7d73594fe17a35c27f8d01f93637637a29ae25b/numpy-1.18.5-cp35-cp35m-manylinux1_x86_64.whl (19.9MB)
100% |████████████████████████████████| 19.9MB 2.1MB/s
Collecting pillow (from imageio==2.4.1)
Downloading https://files.pythonhosted.org/packages/56/3d/f3031fe0a88b797fd09ee0772f611e65be34f30263eefb838cce8f367e75/Pillow-7.2.0-cp35-cp35m-manylinux1_x86_64.whl (2.2MB)
100% |████████████████████████████████| 2.2MB 8.8MB/s
Building wheels for collected packages: imageio
Running setup.py bdist_wheel for imageio ... done
Stored in directory: /root/.cache/pip/wheels/e0/43/31/605de9372ceaf657f152d3d5e82f42cf265d81db8bbe63cde1
Successfully built imageio
Installing collected packages: numpy, pillow, imageio
Successfully installed imageio-2.4.1 numpy-1.18.5 pillow-7.2.0
You are using pip version 10.0.1, however version 20.3.4 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
(2)reedsolo
pip install reedsolo==0.3
输出
Collecting reedsolo==0.3
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/b7/fc/9a92265c7e8d556d3af1fc023727707385645fa05714bb25817448d6df76/reedsolo-0.3.tar.gz
Building wheels for collected packages: reedsolo
Running setup.py bdist_wheel for reedsolo ... done
Stored in directory: /root/.cache/pip/wheels/68/d0/d7/45bf19572458ca70b89ef0eabf2752b6964b43453a3cd47da3
Successfully built reedsolo
Installing collected packages: reedsolo
Successfully installed reedsolo-0.3
You are using pip version 10.0.1, however version 20.3.4 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
(3)scipy
pip install scipy==1.1.0
输出
Collecting scipy==1.1.0
Downloading https://files.pythonhosted.org/packages/cd/32/5196b64476bd41d596a8aba43506e2403e019c90e1a3dfc21d51b83db5a6/scipy-1.1.0-cp35-cp35m-manylinux1_x86_64.whl (33.1MB)
100% |████████████████████████████████| 33.1MB 1.4MB/s
Requirement already satisfied: numpy>=1.8.2 in ./anaconda3/envs/stegonogan/lib/python3.5/site-packages (from scipy==1.1.0) (1.18.5)
Installing collected packages: scipy
Successfully installed scipy-1.1.0
(4)tqdm
pip install tqdm==4.28.1
输出
Collecting tqdm==4.28.1
Downloading https://files.pythonhosted.org/packages/91/55/8cb23a97301b177e9c8e3226dba45bb454411de2cbd25746763267f226c2/tqdm-4.28.1-py2.py3-none-any.whl (45kB)
100% |████████████████████████████████| 51kB 1.2MB/s
Installing collected packages: tqdm
Successfully installed tqdm-4.28.1
(5)numpy
pip install numpy==1.15.4
输出
Collecting numpy==1.15.4
Downloading https://files.pythonhosted.org/packages/86/04/bd774106ae0ae1ada68c67efe89f1a16b2aa373cc2db15d974002a9f136d/numpy-1.15.4-cp35-cp35m-manylinux1_x86_64.whl (13.8MB)
100% |████████████████████████████████| 13.8MB 2.2MB/s
Installing collected packages: numpy
Found existing installation: numpy 1.18.5
Uninstalling numpy-1.18.5:
Successfully uninstalled numpy-1.18.5
Successfully installed numpy-1.15.4
(6)Pillow
pip install Pillow==5.0.0
输出
Collecting Pillow==5.0.0
Downloading https://files.pythonhosted.org/packages/8f/51/6889b009c2c7be6e347258bd631b254fba9cc48b069304b99b891e541bcf/Pillow-5.0.0-cp35-cp35m-manylinux1_x86_64.whl (5.9MB)
100% |████████████████████████████████| 5.9MB 4.0MB/s
Installing collected packages: Pillow
Found existing installation: Pillow 7.2.0
Uninstalling Pillow-7.2.0:
Successfully uninstalled Pillow-7.2.0
Successfully installed Pillow-5.0.0
(7)torch
pip install torch==1.0.0 # torch会比较慢一点。
输出
Collecting torch==1.0.0
Downloading https://files.pythonhosted.org/packages/86/78/a113ef4e76dfb539e5c73be2aa010008b88fe1d83e324b5a3b16011bb245/torch-1.0.0-cp35-cp35m-manylinux1_x86_64.whl (591.8MB)
100% |████████████████████████████████| 591.8MB 110kB/s
Installing collected packages: torch
Successfully installed torch-1.0.0
(8)torchvision
pip install torchvision==0.2.1 # 这里没有给出具体版本信息,查看torch和torchvision版本对应信息,可得应装0.2.1的版本。
输出
Collecting torchvision==0.2.1
Downloading https://files.pythonhosted.org/packages/ca/0d/f00b2885711e08bd71242ebe7b96561e6f6d01fdb4b9dcf4d37e2e13c5e1/torchvision-0.2.1-py2.py3-none-any.whl (54kB)
100% |████████████████████████████████| 61kB 1.3MB/s
Requirement already satisfied: numpy in ./anaconda3/envs/stegonogan/lib/python3.5/site-packages (from torchvision==0.2.1) (1.15.4)
Requirement already satisfied: pillow>=4.1.1 in ./anaconda3/envs/stegonogan/lib/python3.5/site-packages (from torchvision==0.2.1) (5.0.0)
Requirement already satisfied: torch in ./anaconda3/envs/stegonogan/lib/python3.5/site-packages (from torchvision==0.2.1) (1.0.0)
Collecting six (from torchvision==0.2.1)
Downloading https://files.pythonhosted.org/packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whl
Installing collected packages: six, torchvision
Successfully installed six-1.16.0 torchvision-0.2.1
(9)pytest-runner
pip install pytest-runner==2.11.1
输出
Collecting pytest-runner==2.11.1
Downloading https://files.pythonhosted.org/packages/26/d4/9e25eb226ddc6d395a72e3a6a6dcdfea197c21a2c7fbcd6f94545effb04d/pytest_runner-2.11.1-py2.py3-none-any.whl
Installing collected packages: pytest-runner
Successfully installed pytest-runner-2.11.1
(10)pytest
pip install pytest==3.4.2
输出
Collecting pytest==3.4.2
Downloading https://files.pythonhosted.org/packages/f1/5c/411ceafef3b5e5486d16f174db18dc26f49e7704dbf59ef488e95db47339/pytest-3.4.2-py2.py3-none-any.whl (189kB)
100% |████████████████████████████████| 194kB 2.6MB/s
Collecting py>=1.5.0 (from pytest==3.4.2)
Downloading https://files.pythonhosted.org/packages/f6/f0/10642828a8dfb741e5f3fbaac830550a518a775c7fff6f04a007259b0548/py-1.11.0-py2.py3-none-any.whl (98kB)
100% |████████████████████████████████| 102kB 10.5MB/s
Requirement already satisfied: setuptools in ./anaconda3/envs/stegonogan/lib/python3.5/site-packages (from pytest==3.4.2) (40.2.0)
Collecting pluggy<0.7,>=0.5 (from pytest==3.4.2)
Downloading https://files.pythonhosted.org/packages/ba/65/ded3bc40bbf8d887f262f150fbe1ae6637765b5c9534bd55690ed2c0b0f7/pluggy-0.6.0-py3-none-any.whl
Collecting attrs>=17.2.0 (from pytest==3.4.2)
Downloading https://files.pythonhosted.org/packages/f2/bc/d817287d1aa01878af07c19505fafd1165cd6a119e9d0821ca1d1c20312d/attrs-22.1.0-py2.py3-none-any.whl (58kB)
100% |████████████████████████████████| 61kB 9.8MB/s
Requirement already satisfied: six>=1.10.0 in ./anaconda3/envs/stegonogan/lib/python3.5/site-packages (from pytest==3.4.2) (1.16.0)
Installing collected packages: py, pluggy, attrs, pytest
Successfully installed attrs-22.1.0 pluggy-0.6.0 py-1.11.0 pytest-3.4.2
(11)pytest-cov
pip install pytest-cov==2.6.0
输出
Collecting pytest-cov==2.6.0
Downloading https://files.pythonhosted.org/packages/30/0a/1b009b525526cd3cd9f52f52391b426c5a3597447be811a10bcb1f6b05eb/pytest_cov-2.6.0-py2.py3-none-any.whl
Collecting coverage>=4.4 (from pytest-cov==2.6.0)
Downloading https://files.pythonhosted.org/packages/18/97/fda94f1e78b508dd1a493106c236076c4c82a9925c9347211afc4d6bd4e0/coverage-5.5-cp35-cp35m-manylinux1_x86_64.whl (240kB)
100% |████████████████████████████████| 245kB 3.6MB/s
Requirement already satisfied: pytest>=2.9 in ./anaconda3/envs/stegonogan/lib/python3.5/site-packages (from pytest-cov==2.6.0) (3.4.2)
Requirement already satisfied: attrs>=17.2.0 in ./anaconda3/envs/stegonogan/lib/python3.5/site-packages (from pytest>=2.9->pytest-cov==2.6.0) (22.1.0)
Requirement already satisfied: setuptools in ./anaconda3/envs/stegonogan/lib/python3.5/site-packages (from pytest>=2.9->pytest-cov==2.6.0) (40.2.0)
Requirement already satisfied: pluggy<0.7,>=0.5 in ./anaconda3/envs/stegonogan/lib/python3.5/site-packages (from pytest>=2.9->pytest-cov==2.6.0) (0.6.0)
Requirement already satisfied: py>=1.5.0 in ./anaconda3/envs/stegonogan/lib/python3.5/site-packages (from pytest>=2.9->pytest-cov==2.6.0) (1.11.0)
Requirement already satisfied: six>=1.10.0 in ./anaconda3/envs/stegonogan/lib/python3.5/site-packages (from pytest>=2.9->pytest-cov==2.6.0) (1.16.0)
Installing collected packages: coverage, pytest-cov
Successfully installed coverage-5.5 pytest-cov-2.6.0
(12)要求pip9.0.1,但是已经安装的是10.0.1的,需要对pip降级。
python -m pip install pip==9.0.1
输出
Collecting pip==9.0.1
Downloading https://files.pythonhosted.org/packages/b6/ac/7015eb97dc749283ffdec1c3a88ddb8ae03b8fad0f0e611408f196358da3/pip-9.0.1-py2.py3-none-any.whl (1.3MB)
100% |████████████████████████████████| 1.3MB 13.4MB/s
Installing collected packages: pip
Found existing installation: pip 10.0.1
Uninstalling pip-10.0.1:
Successfully uninstalled pip-10.0.1
Successfully installed pip-9.0.1
(13)bumpversion
pip install bumpversion==0.5.3
输出
Collecting bumpversion==0.5.3
Downloading https://files.pythonhosted.org/packages/ad/34/49c914829066558ebd405a56647d3ee26856282b8b8c4cd2c0c8de40ff8e/bumpversion-0.5.3-py2.py3-none-any.whl
Installing collected packages: bumpversion
Successfully installed bumpversion-0.5.3
(14)watchdog
pip install watchdog==0.8.3
输出
Collecting watchdog==0.8.3
Downloading https://files.pythonhosted.org/packages/54/7d/c7c0ad1e32b9f132075967fc353a244eb2b375a3d2f5b0ce612fd96e107e/watchdog-0.8.3.tar.gz (83kB)
100% |████████████████████████████████| 92kB 1.3MB/s
Collecting PyYAML>=3.10 (from watchdog==0.8.3)
Downloading https://files.pythonhosted.org/packages/64/c2/b80047c7ac2478f9501676c988a5411ed5572f35d1beff9cae07d321512c/PyYAML-5.3.1.tar.gz (269kB)
100% |████████████████████████████████| 276kB 1.7MB/s
Collecting argh>=0.24.1 (from watchdog==0.8.3)
Downloading https://files.pythonhosted.org/packages/06/1c/e667a7126f0b84aaa1c56844337bf0ac12445d1beb9c8a6199a7314944bf/argh-0.26.2-py2.py3-none-any.whl
Collecting pathtools>=0.1.1 (from watchdog==0.8.3)
Downloading https://files.pythonhosted.org/packages/e7/7f/470d6fcdf23f9f3518f6b0b76be9df16dcc8630ad409947f8be2eb0ed13a/pathtools-0.1.2.tar.gz
Building wheels for collected packages: watchdog, PyYAML, pathtools
Running setup.py bdist_wheel for watchdog ... done
Stored in directory: /root/.cache/pip/wheels/3b/a0/6f/8c52fea32c994f833b55e7b73078f81c155ec108011c04e708
Running setup.py bdist_wheel for PyYAML ... done
Stored in directory: /root/.cache/pip/wheels/a7/c1/ea/cf5bd31012e735dc1dfea3131a2d5eae7978b251083d6247bd
Running setup.py bdist_wheel for pathtools ... done
Stored in directory: /root/.cache/pip/wheels/0b/04/79/c3b0c3a0266a3cb4376da31e5bfe8bba0c489246968a68e843
Successfully built watchdog PyYAML pathtools
Installing collected packages: PyYAML, argh, pathtools, watchdog
Successfully installed PyYAML-5.3.1 argh-0.26.2 pathtools-0.1.2 watchdog-0.8.3
(14)m2r
pip install m2r==0.2.0
输出
Collecting m2r==0.2.0
Downloading https://files.pythonhosted.org/packages/57/6c/b675cbac3c5dfd64190abc04cbe048d04bab06a64df546845f44589c5681/m2r-0.2.0.tar.gz
Collecting mistune (from m2r==0.2.0)
Downloading https://files.pythonhosted.org/packages/3a/c7/b0a4413a4d9b7a4fda0d710fd90dba62375f0d0c4544e848dc7656757c0c/mistune-2.0.4-py2.py3-none-any.whl
Collecting docutils (from m2r==0.2.0)
Downloading https://files.pythonhosted.org/packages/8d/14/69b4bad34e3f250afe29a854da03acb6747711f3df06c359fa053fae4e76/docutils-0.18.1-py2.py3-none-any.whl (570kB)
100% |████████████████████████████████| 573kB 1.5MB/s
Building wheels for collected packages: m2r
Running setup.py bdist_wheel for m2r ... done
Stored in directory: /root/.cache/pip/wheels/f4/a9/81/3560ab7d55e1b3ce9dd6a9d74d251b75f87a8d96939e8840db
Successfully built m2r
Installing collected packages: mistune, docutils, m2r
Successfully installed docutils-0.18.1 m2r-0.2.0 mistune-2.0.4
(15)Sphinx
pip install Sphinx==1.7.1
输出
Collecting Sphinx==1.7.1
Downloading https://files.pythonhosted.org/packages/2a/85/078fd06b2524085229b1f317c59c6366573ba87e3579e9b8f1326e730a7f/Sphinx-1.7.1-py2.py3-none-any.whl (1.9MB)
100% |████████████████████████████████| 1.9MB 558kB/s
Requirement already satisfied: docutils>=0.11 in ./anaconda3/envs/stegonogan/lib/python3.5/site-packages (from Sphinx==1.7.1)
Requirement already satisfied: setuptools in ./anaconda3/envs/stegonogan/lib/python3.5/site-packages (from Sphinx==1.7.1)
Collecting alabaster<0.8,>=0.7 (from Sphinx==1.7.1)
Downloading https://files.pythonhosted.org/packages/10/ad/00b090d23a222943eb0eda509720a404f531a439e803f6538f35136cae9e/alabaster-0.7.12-py2.py3-none-any.whl
Collecting requests>=2.0.0 (from Sphinx==1.7.1)
Downloading https://files.pythonhosted.org/packages/29/c1/24814557f1d22c56d50280771a17307e6bf87b70727d975fd6b2ce6b014a/requests-2.25.1-py2.py3-none-any.whl (61kB)
100% |████████████████████████████████| 61kB 4.4MB/s
Collecting Jinja2>=2.3 (from Sphinx==1.7.1)
Downloading https://files.pythonhosted.org/packages/7e/c2/1eece8c95ddbc9b1aeb64f5783a9e07a286de42191b7204d67b7496ddf35/Jinja2-2.11.3-py2.py3-none-any.whl (125kB)
100% |████████████████████████████████| 133kB 3.9MB/s
Collecting sphinxcontrib-websupport (from Sphinx==1.7.1)
Downloading https://files.pythonhosted.org/packages/e9/e5/2a547830845e6e6e5d97b3246fc1e3ec74cba879c9adc5a8e27f1291bca3/sphinxcontrib_websupport-1.2.4-py2.py3-none-any.whl
Collecting snowballstemmer>=1.1 (from Sphinx==1.7.1)
Downloading https://files.pythonhosted.org/packages/ed/dc/c02e01294f7265e63a7315fe086dd1df7dacb9f840a804da846b96d01b96/snowballstemmer-2.2.0-py2.py3-none-any.whl (93kB)
100% |████████████████████████████████| 102kB 4.2MB/s
Collecting packaging (from Sphinx==1.7.1)
Downloading https://files.pythonhosted.org/packages/3e/89/7ea760b4daa42653ece2380531c90f64788d979110a2ab51049d92f408af/packaging-20.9-py2.py3-none-any.whl (40kB)
100% |████████████████████████████████| 40kB 5.0MB/s
Requirement already satisfied: six>=1.5 in ./anaconda3/envs/stegonogan/lib/python3.5/site-packages (from Sphinx==1.7.1)
Collecting imagesize (from Sphinx==1.7.1)
Downloading https://files.pythonhosted.org/packages/ff/62/85c4c919272577931d407be5ba5d71c20f0b616d31a0befe0ae45bb79abd/imagesize-1.4.1-py2.py3-none-any.whl
Collecting Pygments>=2.0 (from Sphinx==1.7.1)
Downloading https://files.pythonhosted.org/packages/1d/17/ed4d2df187995561b28f1073df24137cb750e12f9879d291cc8ab67c65d2/Pygments-2.11.2-py3-none-any.whl (1.1MB)
100% |████████████████████████████████| 1.1MB 1.0MB/s
Collecting babel!=2.0,>=1.3 (from Sphinx==1.7.1)
Downloading https://files.pythonhosted.org/packages/aa/96/4ba93c5f40459dc850d25f9ba93f869a623e77aaecc7a9344e19c01942cf/Babel-2.9.1-py2.py3-none-any.whl (8.8MB)
100% |████████████████████████████████| 8.8MB 133kB/s
Collecting chardet<5,>=3.0.2 (from requests>=2.0.0->Sphinx==1.7.1)
Downloading https://files.pythonhosted.org/packages/19/c7/fa589626997dd07bd87d9269342ccb74b1720384a4d739a1872bd84fbe68/chardet-4.0.0-py2.py3-none-any.whl (178kB)
100% |████████████████████████████████| 184kB 2.8MB/s
Requirement already satisfied: certifi>=2017.4.17 in ./anaconda3/envs/stegonogan/lib/python3.5/site-packages (from requests>=2.0.0->Sphinx==1.7.1)
Collecting urllib3<1.27,>=1.21.1 (from requests>=2.0.0->Sphinx==1.7.1)
Downloading https://files.pythonhosted.org/packages/ec/03/062e6444ce4baf1eac17a6a0ebfe36bb1ad05e1df0e20b110de59c278498/urllib3-1.26.9-py2.py3-none-any.whl (138kB)
100% |████████████████████████████████| 143kB 3.7MB/s
Collecting idna<3,>=2.5 (from requests>=2.0.0->Sphinx==1.7.1)
Downloading https://files.pythonhosted.org/packages/a2/38/928ddce2273eaa564f6f50de919327bf3a00f091b5baba8dfa9460f3a8a8/idna-2.10-py2.py3-none-any.whl (58kB)
100% |████████████████████████████████| 61kB 4.9MB/s
Collecting MarkupSafe>=0.23 (from Jinja2>=2.3->Sphinx==1.7.1)
Downloading https://files.pythonhosted.org/packages/6e/57/d40124076756c19ff2269678de7ae25a14ebbb3f6314eb5ce9477f191350/MarkupSafe-1.1.1-cp35-cp35m-manylinux1_x86_64.whl
Collecting sphinxcontrib-serializinghtml (from sphinxcontrib-websupport->Sphinx==1.7.1)
Downloading https://files.pythonhosted.org/packages/c6/77/5464ec50dd0f1c1037e3c93249b040c8fc8078fdda97530eeb02424b6eea/sphinxcontrib_serializinghtml-1.1.5-py2.py3-none-any.whl (94kB)
100% |████████████████████████████████| 102kB 4.4MB/s
Collecting pyparsing>=2.0.2 (from packaging->Sphinx==1.7.1)
Downloading https://files.pythonhosted.org/packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl (67kB)
100% |████████████████████████████████| 71kB 5.0MB/s
Collecting pytz>=2015.7 (from babel!=2.0,>=1.3->Sphinx==1.7.1)
Downloading https://files.pythonhosted.org/packages/d5/50/54451e88e3da4616286029a3a17fc377de817f66a0f50e1faaee90161724/pytz-2022.2.1-py2.py3-none-any.whl (500kB)
100% |████████████████████████████████| 501kB 1.8MB/s
Installing collected packages: alabaster, chardet, urllib3, idna, requests, MarkupSafe, Jinja2, sphinxcontrib-serializinghtml, sphinxcontrib-websupport, snowballstemmer, pyparsing, packaging, imagesize, Pygments, pytz, babel, Sphinx
Successfully installed Jinja2-2.11.3 MarkupSafe-1.1.1 Pygments-2.11.2 Sphinx-1.7.1 alabaster-0.7.12 babel-2.9.1 chardet-4.0.0 idna-2.10 imagesize-1.4.1 packaging-20.9 pyparsing-2.4.7 pytz-2022.2.1 requests-2.25.1 snowballstemmer-2.2.0 sphinxcontrib-serializinghtml-1.1.5 sphinxcontrib-websupport-1.2.4 urllib3-1.26.9
(16)sphinx_rtd_theme
pip install sphinx_rtd_theme==0.2.4
输出
Collecting sphinx_rtd_theme==0.2.4
Downloading https://files.pythonhosted.org/packages/d7/50/849cd05961e7bafda2e0846ba80fa03f5a16a55fc5acc1d9f6bc79eb6fd9/sphinx_rtd_theme-0.2.4-py2.py3-none-any.whl (1.4MB)
100% |████████████████████████████████| 1.4MB 821kB/s
Installing collected packages: sphinx-rtd-theme
Successfully installed sphinx-rtd-theme-0.2.4
(17)flake8>=3.7.7
pip install flake8==3.7.7
输出
Collecting flake8==3.7.7
Downloading https://files.pythonhosted.org/packages/e9/76/b915bd28976068a9843bf836b789794aa4a8eb13338b23581005cd9177c0/flake8-3.7.7-py2.py3-none-any.whl (68kB)
100% |████████████████████████████████| 71kB 1.2MB/s
Collecting mccabe<0.7.0,>=0.6.0 (from flake8==3.7.7)
Downloading https://files.pythonhosted.org/packages/87/89/479dc97e18549e21354893e4ee4ef36db1d237534982482c3681ee6e7b57/mccabe-0.6.1-py2.py3-none-any.whl
Collecting pyflakes<2.2.0,>=2.1.0 (from flake8==3.7.7)
Downloading https://files.pythonhosted.org/packages/84/f2/ed0ffb887f8138a8fe5a621b8c0bb9598bfb3989e029f6c6a85ee66628ee/pyflakes-2.1.1-py2.py3-none-any.whl (59kB)
100% |████████████████████████████████| 61kB 2.6MB/s
Collecting pycodestyle<2.6.0,>=2.5.0 (from flake8==3.7.7)
Downloading https://files.pythonhosted.org/packages/0e/0c/04a353e104d2f324f8ee5f4b32012618c1c86dd79e52a433b64fceed511b/pycodestyle-2.5.0-py2.py3-none-any.whl (51kB)
100% |████████████████████████████████| 51kB 3.0MB/s
Collecting entrypoints<0.4.0,>=0.3.0 (from flake8==3.7.7)
Downloading https://files.pythonhosted.org/packages/ac/c6/44694103f8c221443ee6b0041f69e2740d89a25641e62fb4f2ee568f2f9c/entrypoints-0.3-py2.py3-none-any.whl
Installing collected packages: mccabe, pyflakes, pycodestyle, entrypoints, flake8
Successfully installed entrypoints-0.3 flake8-3.7.7 mccabe-0.6.1 pycodestyle-2.5.0 pyflakes-2.1.1
(18)isort>=4.3.4
pip install isort==4.3.4
输出
Collecting isort==4.3.4
Downloading https://files.pythonhosted.org/packages/1f/2c/22eee714d7199ae0464beda6ad5fedec8fee6a2f7ffd1e8f1840928fe318/isort-4.3.4-py3-none-any.whl (45kB)
100% |████████████████████████████████| 51kB 1.2MB/s
Installing collected packages: isort
Successfully installed isort-4.3.4
(19)autoflake
pip install autoflake==1.1
输出
Collecting autoflake==1.1
Downloading https://files.pythonhosted.org/packages/82/2b/2c650613a23021c78ab024ffda3009326b6c0dde5ba0b9dded42a95654a0/autoflake-1.1.tar.gz
Requirement already satisfied: pyflakes>=1.1.0 in ./anaconda3/envs/stegonogan/lib/python3.5/site-packages (from autoflake==1.1)
Building wheels for collected packages: autoflake
Running setup.py bdist_wheel for autoflake ... done
Stored in directory: /root/.cache/pip/wheels/6c/84/c5/42baa46954d56e8584cd1a1e2fc11144ffaae2f3bf79e19255
Successfully built autoflake
Installing collected packages: autoflake
Successfully installed autoflake-1.1
(20)autopep8>=1.4.3
pip install autopep8==1.4.3
输出
Collecting autopep8==1.4.3
Downloading https://files.pythonhosted.org/packages/5b/ba/37d30e4263c51ee5a655118ac8c331e96a4e45fd4cea876a74b87af9ffc1/autopep8-1.4.3.tar.gz (113kB)
100% |████████████████████████████████| 122kB 1.2MB/s
Requirement already satisfied: pycodestyle>=2.4.0 in ./anaconda3/envs/stegonogan/lib/python3.5/site-packages (from autopep8==1.4.3)
Building wheels for collected packages: autopep8
Running setup.py bdist_wheel for autopep8 ... done
Stored in directory: /root/.cache/pip/wheels/91/07/fd/99884826d575c769102ddec2f9b96c7ad57cc6b5ca3a5e02b4
Successfully built autopep8
Installing collected packages: autopep8
Successfully installed autopep8-1.4.3
(21)twine>=1.10.0
pip install twine==1.10.0
输出
Collecting twine==1.10.0
Downloading https://files.pythonhosted.org/packages/4f/95/48cc7901ba6e63120bc0b7d1ba70b85cb9c1221be4bfa7b95d734e6d9504/twine-1.10.0-py2.py3-none-any.whl
Collecting pkginfo>=1.0 (from twine==1.10.0)
Downloading https://files.pythonhosted.org/packages/cd/00/49f59cdd2c6a52e6665fda4de671dac5614366dc827e050c55428241b929/pkginfo-1.8.2-py2.py3-none-any.whl
Requirement already satisfied: setuptools>=0.7.0 in ./anaconda3/envs/stegonogan/lib/python3.5/site-packages (from twine==1.10.0)
Requirement already satisfied: tqdm>=4.14 in ./anaconda3/envs/stegonogan/lib/python3.5/site-packages (from twine==1.10.0)
Requirement already satisfied: requests!=2.15,!=2.16,>=2.5.0 in ./anaconda3/envs/stegonogan/lib/python3.5/site-packages (from twine==1.10.0)
Collecting requests-toolbelt>=0.8.0 (from twine==1.10.0)
Downloading https://files.pythonhosted.org/packages/60/ef/7681134338fc097acef8d9b2f8abe0458e4d87559c689a8c306d0957ece5/requests_toolbelt-0.9.1-py2.py3-none-any.whl (54kB)
100% |████████████████████████████████| 61kB 2.3MB/s
Requirement already satisfied: certifi>=2017.4.17 in ./anaconda3/envs/stegonogan/lib/python3.5/site-packages (from requests!=2.15,!=2.16,>=2.5.0->twine==1.10.0)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in ./anaconda3/envs/stegonogan/lib/python3.5/site-packages (from requests!=2.15,!=2.16,>=2.5.0->twine==1.10.0)
Requirement already satisfied: idna<3,>=2.5 in ./anaconda3/envs/stegonogan/lib/python3.5/site-packages (from requests!=2.15,!=2.16,>=2.5.0->twine==1.10.0)
Requirement already satisfied: chardet<5,>=3.0.2 in ./anaconda3/envs/stegonogan/lib/python3.5/site-packages (from requests!=2.15,!=2.16,>=2.5.0->twine==1.10.0)
Installing collected packages: pkginfo, requests-toolbelt, twine
Successfully installed pkginfo-1.8.2 requests-toolbelt-0.9.1 twine-1.10.0
(22)wheel>=0.30.0
pip install wheel==0.30.0
输出
Collecting wheel==0.30.0
Downloading https://files.pythonhosted.org/packages/0c/80/16a85b47702a1f47a63c104c91abdd0a6704ee8ae3b4ce4afc49bc39f9d9/wheel-0.30.0-py2.py3-none-any.whl (49kB)
100% |████████████████████████████████| 51kB 989kB/s
Installing collected packages: wheel
Found existing installation: wheel 0.37.1
Uninstalling wheel-0.37.1:
Successfully uninstalled wheel-0.37.1
Successfully installed wheel-0.30.0
(23)coverage>=4.5.1
pip install coverage==4.5.1
输出
Collecting coverage==4.5.1
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/2c/c0/8047b7cbbcdbd7d21f8d68126196b7915da892c5af3d1a99dba082d33ec0/coverage-4.5.1-cp35-cp35m-manylinux1_x86_64.whl (202kB)
100% |████████████████████████████████| 204kB 2.2MB/s
Installing collected packages: coverage
Found existing installation: coverage 5.5
Uninstalling coverage-5.5:
Successfully uninstalled coverage-5.5
Successfully installed coverage-4.5.1
(24)tox>=2.9.1
pip install tox==2.9.1
输出
Collecting tox==2.9.1
Downloading https://files.pythonhosted.org/packages/1d/4e/20c679f8c5948f7c48591fde33d442e716af66a31a88f5791850a75041eb/tox-2.9.1-py2.py3-none-any.whl (73kB)
100% |████████████████████████████████| 81kB 1.3MB/s
Requirement already satisfied: py>=1.4.17 in ./anaconda3/envs/stegonogan/lib/python3.5/site-packages (from tox==2.9.1)
Requirement already satisfied: six in ./anaconda3/envs/stegonogan/lib/python3.5/site-packages (from tox==2.9.1)
Requirement already satisfied: pluggy<1.0,>=0.3.0 in ./anaconda3/envs/stegonogan/lib/python3.5/site-packages (from tox==2.9.1)
Collecting virtualenv>=1.11.2; python_version != "3.2" (from tox==2.9.1)
Downloading https://files.pythonhosted.org/packages/6f/43/df7c7b1b7a5ac4e41fac24c3682c1cc32f2c1d683d308bba2500338d1e3e/virtualenv-20.15.1-py2.py3-none-any.whl (10.1MB)
100% |████████████████████████████████| 10.1MB 125kB/s
Collecting distlib<1,>=0.3.1 (from virtualenv>=1.11.2; python_version != "3.2"->tox==2.9.1)
Downloading https://files.pythonhosted.org/packages/d5/94/db0229ff741c8ff2ff0ac5a8a58d142bd0f81c810701ad9eae2c4c718ede/distlib-0.3.5-py2.py3-none-any.whl (466kB)
100% |████████████████████████████████| 471kB 1.7MB/s
Collecting importlib-resources>=1.0; python_version < "3.7" (from virtualenv>=1.11.2; python_version != "3.2"->tox==2.9.1)
Downloading https://files.pythonhosted.org/packages/e6/b5/ca7ff4e244ae51e70f603889fcd67ee142050b539b3e2f40fbbd8ca316b5/importlib_resources-3.2.1-py2.py3-none-any.whl
Collecting platformdirs<3,>=2 (from virtualenv>=1.11.2; python_version != "3.2"->tox==2.9.1)
Downloading https://files.pythonhosted.org/packages/12/57/f4e6d433fba8bde239baa65f626a31fc6d0556a2065fcc81aaa0f4f1507b/platformdirs-2.0.2-py2.py3-none-any.whl
Collecting importlib-metadata>=0.12; python_version < "3.8" (from virtualenv>=1.11.2; python_version != "3.2"->tox==2.9.1)
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/cf/b4/877779cd7b5a15536ecbe0655cfb35a0de0ede6d888151fd7356d278c47d/importlib_metadata-2.1.3-py2.py3-none-any.whl
Collecting filelock<4,>=3.2 (from virtualenv>=1.11.2; python_version != "3.2"->tox==2.9.1)
Downloading https://files.pythonhosted.org/packages/f1/12/585c4d8bef61cd7f9497a021d935ba9fb3127f5e45593c2fcc313897f582/filelock-3.2.1-py2.py3-none-any.whl
Collecting zipp>=0.4; python_version < "3.8" (from importlib-resources>=1.0; python_version < "3.7"->virtualenv>=1.11.2; python_version != "3.2"->tox==2.9.1)
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/96/0a/67556e9b7782df7118c1f49bdc494da5e5e429c93aa77965f33e81287c8c/zipp-1.2.0-py2.py3-none-any.whl
Installing collected packages: distlib, zipp, importlib-resources, platformdirs, importlib-metadata, filelock, virtualenv, tox
Successfully installed distlib-0.3.5 filelock-3.2.1 importlib-metadata-2.1.3 importlib-resources-3.2.1 platformdirs-2.0.2 tox-2.9.1 virtualenv-20.15.1 zipp-1.2.0
5. 查看是否都安装好了
conda list
输出
_libgcc_mutex 0.1 main
_openmp_mutex 5.1 1_gnu
alabaster 0.7.12 pypi_0 pypi
argh 0.26.2 pypi_0 pypi
attrs 22.1.0 pypi_0 pypi
autoflake 1.1 pypi_0 pypi
autopep8 1.4.3 pypi_0 pypi
babel 2.9.1 pypi_0 pypi
bumpversion 0.5.3 pypi_0 pypi
ca-certificates 2022.07.19 h06a4308_0
certifi 2020.6.20 pyhd3eb1b0_3
chardet 4.0.0 pypi_0 pypi
coverage 4.5.1 pypi_0 pypi
distlib 0.3.5 pypi_0 pypi
docutils 0.18.1 pypi_0 pypi
entrypoints 0.3 pypi_0 pypi
filelock 3.2.1 pypi_0 pypi
flake8 3.7.7 pypi_0 pypi
idna 2.10 pypi_0 pypi
imageio 2.4.1 pypi_0 pypi
imagesize 1.4.1 pypi_0 pypi
importlib-metadata 2.1.3 pypi_0 pypi
importlib-resources 3.2.1 pypi_0 pypi
isort 4.3.4 pypi_0 pypi
jinja2 2.11.3 pypi_0 pypi
libffi 3.3 he6710b0_2
libgcc-ng 11.2.0 h1234567_1
libgomp 11.2.0 h1234567_1
libstdcxx-ng 11.2.0 h1234567_1
m2r 0.2.0 pypi_0 pypi
markupsafe 1.1.1 pypi_0 pypi
mccabe 0.6.1 pypi_0 pypi
mistune 2.0.4 pypi_0 pypi
ncurses 6.3 h5eee18b_3
numpy 1.15.4 pypi_0 pypi
openssl 1.1.1q h7f8727e_0
packaging 20.9 pypi_0 pypi
pathtools 0.1.2 pypi_0 pypi
pillow 5.0.0 pypi_0 pypi
pip 9.0.1 pypi_0 pypi
pkginfo 1.8.2 pypi_0 pypi
platformdirs 2.0.2 pypi_0 pypi
pluggy 0.6.0 pypi_0 pypi
py 1.11.0 pypi_0 pypi
pycodestyle 2.5.0 pypi_0 pypi
pyflakes 2.1.1 pypi_0 pypi
pygments 2.11.2 pypi_0 pypi
pyparsing 2.4.7 pypi_0 pypi
pytest 3.4.2 pypi_0 pypi
pytest-cov 2.6.0 pypi_0 pypi
pytest-runner 2.11.1 pypi_0 pypi
python 3.5.6 h12debd9_1
pytz 2022.2.1 pypi_0 pypi
pyyaml 5.3.1 pypi_0 pypi
readline 8.1.2 h7f8727e_1
reedsolo 0.3 pypi_0 pypi
requests 2.25.1 pypi_0 pypi
requests-toolbelt 0.9.1 pypi_0 pypi
scipy 1.1.0 pypi_0 pypi
setuptools 40.2.0 py35_0
six 1.16.0 pypi_0 pypi
snowballstemmer 2.2.0 pypi_0 pypi
sphinx 1.7.1 pypi_0 pypi
sphinx-rtd-theme 0.2.4 pypi_0 pypi
sphinxcontrib-serializinghtml 1.1.5 pypi_0 pypi
sphinxcontrib-websupport 1.2.4 pypi_0 pypi
sqlite 3.39.2 h5082296_0
tk 8.6.12 h1ccaba5_0
torch 1.0.0 pypi_0 pypi
torchvision 0.2.1 pypi_0 pypi
tox 2.9.1 pypi_0 pypi
tqdm 4.28.1 pypi_0 pypi
twine 1.10.0 pypi_0 pypi
urllib3 1.26.9 pypi_0 pypi
virtualenv 20.15.1 pypi_0 pypi
watchdog 0.8.3 pypi_0 pypi
wheel 0.30.0 pypi_0 pypi
xz 5.2.5 h7f8727e_1
zipp 1.2.0 pypi_0 pypi
zlib 1.2.12 h7f8727e_2