1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > linux创建新的虚拟环境 并安装指定版本的包

linux创建新的虚拟环境 并安装指定版本的包

时间:2024-04-16 03:49:22

相关推荐

linux创建新的虚拟环境 并安装指定版本的包

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.15. 查看是否都安装好了

已经安装好了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。

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.1Downloading /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 /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 /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: imageioRunning setup.py bdist_wheel for imageio ... doneStored in directory: /root/.cache/pip/wheels/e0/43/31/605de9372ceaf657f152d3d5e82f42cf265d81db8bbe63cde1Successfully built imageioInstalling collected packages: numpy, pillow, imageioSuccessfully installed imageio-2.4.1 numpy-1.18.5 pillow-7.2.0You 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.3Cache entry deserialization failed, entry ignoredDownloading /packages/b7/fc/9a92265c7e8d556d3af1fc023727707385645fa05714bb25817448d6df76/reedsolo-0.3.tar.gzBuilding wheels for collected packages: reedsoloRunning setup.py bdist_wheel for reedsolo ... doneStored in directory: /root/.cache/pip/wheels/68/d0/d7/45bf19572458ca70b89ef0eabf2752b6964b43453a3cd47da3Successfully built reedsoloInstalling collected packages: reedsoloSuccessfully installed reedsolo-0.3You 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.0Downloading /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: scipySuccessfully installed scipy-1.1.0

(4)tqdm

pip install tqdm==4.28.1

输出

Collecting tqdm==4.28.1Downloading /packages/91/55/8cb23a97301b177e9c8e3226dba45bb454411de2cbd25746763267f226c2/tqdm-4.28.1-py2.py3-none-any.whl (45kB)100% |████████████████████████████████| 51kB 1.2MB/s Installing collected packages: tqdmSuccessfully installed tqdm-4.28.1

(5)numpy

pip install numpy==1.15.4

输出

Collecting numpy==1.15.4Downloading /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: numpyFound existing installation: numpy 1.18.5Uninstalling numpy-1.18.5:Successfully uninstalled numpy-1.18.5Successfully installed numpy-1.15.4

(6)Pillow

pip install Pillow==5.0.0

输出

Collecting Pillow==5.0.0Downloading /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: PillowFound existing installation: Pillow 7.2.0Uninstalling Pillow-7.2.0:Successfully uninstalled Pillow-7.2.0Successfully installed Pillow-5.0.0

(7)torch

pip install torch==1.0.0# torch会比较慢一点。

输出

Collecting torch==1.0.0Downloading /packages/86/78/a113ef4e76dfb539e5c73be2aa010008b88fe1d83e324b5a3b16011bb245/torch-1.0.0-cp35-cp35m-manylinux1_x86_64.whl (591.8MB)100% |████████████████████████████████| 591.8MB 110kB/s Installing collected packages: torchSuccessfully installed torch-1.0.0

(8)torchvision

pip install torchvision==0.2.1# 这里没有给出具体版本信息,查看torch和torchvision版本对应信息,可得应装0.2.1的版本。

输出

Collecting torchvision==0.2.1Downloading /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 /packages/d9/5a/e7c31adbe875f2abbb91bd84cf2dc52d792b5a01506781dbcf25c91daf11/six-1.16.0-py2.py3-none-any.whlInstalling collected packages: six, torchvisionSuccessfully installed six-1.16.0 torchvision-0.2.1

(9)pytest-runner

pip install pytest-runner==2.11.1

输出

Collecting pytest-runner==2.11.1Downloading /packages/26/d4/9e25eb226ddc6d395a72e3a6a6dcdfea197c21a2c7fbcd6f94545effb04d/pytest_runner-2.11.1-py2.py3-none-any.whlInstalling collected packages: pytest-runnerSuccessfully installed pytest-runner-2.11.1

(10)pytest

pip install pytest==3.4.2

输出

Collecting pytest==3.4.2Downloading /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 /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 /packages/ba/65/ded3bc40bbf8d887f262f150fbe1ae6637765b5c9534bd55690ed2c0b0f7/pluggy-0.6.0-py3-none-any.whlCollecting attrs>=17.2.0 (from pytest==3.4.2)Downloading /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, pytestSuccessfully 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.0Downloading /packages/30/0a/1b009b525526cd3cd9f52f52391b426c5a3597447be811a10bcb1f6b05eb/pytest_cov-2.6.0-py2.py3-none-any.whlCollecting coverage>=4.4 (from pytest-cov==2.6.0)Downloading /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-covSuccessfully 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.1Downloading /packages/b6/ac/7015eb97dc749283ffdec1c3a88ddb8ae03b8fad0f0e611408f196358da3/pip-9.0.1-py2.py3-none-any.whl (1.3MB)100% |████████████████████████████████| 1.3MB 13.4MB/s Installing collected packages: pipFound existing installation: pip 10.0.1Uninstalling pip-10.0.1:Successfully uninstalled pip-10.0.1Successfully installed pip-9.0.1

(13)bumpversion

pip install bumpversion==0.5.3

输出

Collecting bumpversion==0.5.3Downloading /packages/ad/34/49c914829066558ebd405a56647d3ee26856282b8b8c4cd2c0c8de40ff8e/bumpversion-0.5.3-py2.py3-none-any.whlInstalling collected packages: bumpversionSuccessfully installed bumpversion-0.5.3

(14)watchdog

pip install watchdog==0.8.3

输出

Collecting watchdog==0.8.3Downloading /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 /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 /packages/06/1c/e667a7126f0b84aaa1c56844337bf0ac12445d1beb9c8a6199a7314944bf/argh-0.26.2-py2.py3-none-any.whlCollecting pathtools>=0.1.1 (from watchdog==0.8.3)Downloading /packages/e7/7f/470d6fcdf23f9f3518f6b0b76be9df16dcc8630ad409947f8be2eb0ed13a/pathtools-0.1.2.tar.gzBuilding wheels for collected packages: watchdog, PyYAML, pathtoolsRunning setup.py bdist_wheel for watchdog ... doneStored in directory: /root/.cache/pip/wheels/3b/a0/6f/8c52fea32c994f833b55e7b73078f81c155ec108011c04e708Running setup.py bdist_wheel for PyYAML ... doneStored in directory: /root/.cache/pip/wheels/a7/c1/ea/cf5bd31012e735dc1dfea3131a2d5eae7978b251083d6247bdRunning setup.py bdist_wheel for pathtools ... doneStored in directory: /root/.cache/pip/wheels/0b/04/79/c3b0c3a0266a3cb4376da31e5bfe8bba0c489246968a68e843Successfully built watchdog PyYAML pathtoolsInstalling collected packages: PyYAML, argh, pathtools, watchdogSuccessfully 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.0Downloading /packages/57/6c/b675cbac3c5dfd64190abc04cbe048d04bab06a64df546845f44589c5681/m2r-0.2.0.tar.gzCollecting mistune (from m2r==0.2.0)Downloading /packages/3a/c7/b0a4413a4d9b7a4fda0d710fd90dba62375f0d0c4544e848dc7656757c0c/mistune-2.0.4-py2.py3-none-any.whlCollecting docutils (from m2r==0.2.0)Downloading /packages/8d/14/69b4bad34e3f250afe29a854da03acb6747711f3df06c359fa053fae4e76/docutils-0.18.1-py2.py3-none-any.whl (570kB)100% |████████████████████████████████| 573kB 1.5MB/s Building wheels for collected packages: m2rRunning setup.py bdist_wheel for m2r ... doneStored in directory: /root/.cache/pip/wheels/f4/a9/81/3560ab7d55e1b3ce9dd6a9d74d251b75f87a8d96939e8840dbSuccessfully built m2rInstalling collected packages: mistune, docutils, m2rSuccessfully 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.1Downloading /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 /packages/10/ad/00b090d23a222943eb0eda509720a404f531a439e803f6538f35136cae9e/alabaster-0.7.12-py2.py3-none-any.whlCollecting requests>=2.0.0 (from Sphinx==1.7.1)Downloading /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 /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 /packages/e9/e5/2a547830845e6e6e5d97b3246fc1e3ec74cba879c9adc5a8e27f1291bca3/sphinxcontrib_websupport-1.2.4-py2.py3-none-any.whlCollecting snowballstemmer>=1.1 (from Sphinx==1.7.1)Downloading /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 /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 /packages/ff/62/85c4c919272577931d407be5ba5d71c20f0b616d31a0befe0ae45bb79abd/imagesize-1.4.1-py2.py3-none-any.whlCollecting Pygments>=2.0 (from Sphinx==1.7.1)Downloading /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 /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 /packages/19/c7/fa589626997dd07bd87d9269342ccb74b1720384a4d739a1872bd84fbe68/chardet-4.0.0-py2.py3-none-any.whl (178kB)100% |████████████████████████████████| 184kB 2.8MB/s Requirement already satisfied: certifi>=.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 /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 /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 /packages/6e/57/d40124076756c19ff2269678de7ae25a14ebbb3f6314eb5ce9477f191350/MarkupSafe-1.1.1-cp35-cp35m-manylinux1_x86_64.whlCollecting sphinxcontrib-serializinghtml (from sphinxcontrib-websupport->Sphinx==1.7.1)Downloading /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 /packages/8a/bb/488841f56197b13700afd5658fc279a2025a39e22449b7cf29864669b15d/pyparsing-2.4.7-py2.py3-none-any.whl (67kB)100% |████████████████████████████████| 71kB 5.0MB/s Collecting pytz>=.7 (from babel!=2.0,>=1.3->Sphinx==1.7.1)Downloading /packages/d5/50/54451e88e3da4616286029a3a17fc377de817f66a0f50e1faaee90161724/pytz-.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, SphinxSuccessfully 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-.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.4Downloading /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-themeSuccessfully installed sphinx-rtd-theme-0.2.4

(17)flake8>=3.7.7

pip install flake8==3.7.7

输出

Collecting flake8==3.7.7Downloading /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 /packages/87/89/479dc97e18549e21354893e4ee4ef36db1d237534982482c3681ee6e7b57/mccabe-0.6.1-py2.py3-none-any.whlCollecting pyflakes<2.2.0,>=2.1.0 (from flake8==3.7.7)Downloading /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 /packages/0e/0c/04a353e104d2f324f8ee5f4b3618c1c86dd79e52a433b64fceed511b/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 /packages/ac/c6/44694103f8c221443ee6b0041f69e2740d89a25641e62fb4f2ee568f2f9c/entrypoints-0.3-py2.py3-none-any.whlInstalling collected packages: mccabe, pyflakes, pycodestyle, entrypoints, flake8Successfully 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.4Downloading /packages/1f/2c/22eee714d7199ae0464beda6ad5fedec8fee6a2f7ffd1e8f1840928fe318/isort-4.3.4-py3-none-any.whl (45kB)100% |████████████████████████████████| 51kB 1.2MB/s Installing collected packages: isortSuccessfully installed isort-4.3.4

(19)autoflake

pip install autoflake==1.1

输出

Collecting autoflake==1.1Downloading /packages/82/2b/2c650613a23021c78ab024ffda3009326b6c0dde5ba0b9dded42a95654a0/autoflake-1.1.tar.gzRequirement already satisfied: pyflakes>=1.1.0 in ./anaconda3/envs/stegonogan/lib/python3.5/site-packages (from autoflake==1.1)Building wheels for collected packages: autoflakeRunning setup.py bdist_wheel for autoflake ... doneStored in directory: /root/.cache/pip/wheels/6c/84/c5/42baa46954d56e8584cd1a1e2fc11144ffaae2f3bf79e19255Successfully built autoflakeInstalling collected packages: autoflakeSuccessfully installed autoflake-1.1

(20)autopep8>=1.4.3

pip install autopep8==1.4.3

输出

Collecting autopep8==1.4.3Downloading /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: autopep8Running setup.py bdist_wheel for autopep8 ... doneStored in directory: /root/.cache/pip/wheels/91/07/fd/99884826d575c769102ddec2f9b96c7ad57cc6b5ca3a5e02b4Successfully built autopep8Installing collected packages: autopep8Successfully installed autopep8-1.4.3

(21)twine>=1.10.0

pip install twine==1.10.0

输出

Collecting twine==1.10.0Downloading /packages/4f/95/48cc7901ba6e63120bc0b7d1ba70b85cb9c1221be4bfa7b95d734e6d9504/twine-1.10.0-py2.py3-none-any.whlCollecting pkginfo>=1.0 (from twine==1.10.0)Downloading /packages/cd/00/49f59cdd2c6a52e6665fda4de671dac5614366dc827e050c55428241b929/pkginfo-1.8.2-py2.py3-none-any.whlRequirement 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 /packages/60/ef/7681134338fc097acef8d9b2f8abe0458e4d87559c689a8c306d0957ece5/requests_toolbelt-0.9.1-py2.py3-none-any.whl (54kB)100% |████████████████████████████████| 61kB 2.3MB/s Requirement already satisfied: certifi>=.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, twineSuccessfully 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.0Downloading /packages/0c/80/16a85b47702a1f47a63c104c91abdd0a6704ee8ae3b4ce4afc49bc39f9d9/wheel-0.30.0-py2.py3-none-any.whl (49kB)100% |████████████████████████████████| 51kB 989kB/s Installing collected packages: wheelFound existing installation: wheel 0.37.1Uninstalling wheel-0.37.1:Successfully uninstalled wheel-0.37.1Successfully installed wheel-0.30.0

(23)coverage>=4.5.1

pip install coverage==4.5.1

输出

Collecting coverage==4.5.1Cache entry deserialization failed, entry ignoredDownloading /packages/2c/c0/8047b7cbbcdbd7d21f8d68126196b7915da892c5af3d1a99dba082d33ec0/coverage-4.5.1-cp35-cp35m-manylinux1_x86_64.whl (202kB)100% |████████████████████████████████| 204kB 2.2MB/s Installing collected packages: coverageFound existing installation: coverage 5.5Uninstalling coverage-5.5:Successfully uninstalled coverage-5.5Successfully installed coverage-4.5.1

(24)tox>=2.9.1

pip install tox==2.9.1

输出

Collecting tox==2.9.1Downloading /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 /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 /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 /packages/e6/b5/ca7ff4e244ae51e70f603889fcd67ee142050b539b3e2f40fbbd8ca316b5/importlib_resources-3.2.1-py2.py3-none-any.whlCollecting platformdirs<3,>=2 (from virtualenv>=1.11.2; python_version != "3.2"->tox==2.9.1)Downloading /packages/12/57/f4e6d433fba8bde239baa65f626a31fc6d0556a2065fcc81aaa0f4f1507b/platformdirs-2.0.2-py2.py3-none-any.whlCollecting 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 ignoredDownloading /packages/cf/b4/877779cd7b5a15536ecbe0655cfb35a0de0ede6d888151fd7356d278c47d/importlib_metadata-2.1.3-py2.py3-none-any.whlCollecting filelock<4,>=3.2 (from virtualenv>=1.11.2; python_version != "3.2"->tox==2.9.1)Downloading /packages/f1/12/585c4d8bef61cd7f9497a021d935ba9fb3127f5e45593c2fcc313897f582/filelock-3.2.1-py2.py3-none-any.whlCollecting 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 ignoredDownloading /packages/96/0a/67556e9b7782df7118c1f49bdc494da5e5e429c93aa77965f33e81287c8c/zipp-1.2.0-py2.py3-none-any.whlInstalling collected packages: distlib, zipp, importlib-resources, platformdirs, importlib-metadata, filelock, virtualenv, toxSuccessfully 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 pypiargh 0.26.2 pypi_0 pypiattrs 22.1.0 pypi_0 pypiautoflake 1.1 pypi_0 pypiautopep8 1.4.3pypi_0 pypibabel 2.9.1pypi_0 pypibumpversion0.5.3pypi_0 pypica-certificates .07.19 h06a4308_0 certifi .6.20pyhd3eb1b0_3 chardet 4.0.0pypi_0 pypicoverage 4.5.1pypi_0 pypidistlib 0.3.5pypi_0 pypidocutils 0.18.1 pypi_0 pypientrypoints0.3 pypi_0 pypifilelock 3.2.1pypi_0 pypiflake83.7.7pypi_0 pypiidna 2.10 pypi_0 pypiimageio 2.4.1pypi_0 pypiimagesize 1.4.1pypi_0 pypiimportlib-metadata 2.1.3pypi_0 pypiimportlib-resources 3.2.1pypi_0 pypiisort 4.3.4pypi_0 pypijinja22.11.3 pypi_0 pypilibffi3.3 he6710b0_2 libgcc-ng 11.2.0h1234567_1 libgomp 11.2.0h1234567_1 libstdcxx-ng 11.2.0h1234567_1 m2r 0.2.0pypi_0 pypimarkupsafe1.1.1pypi_0 pypimccabe0.6.1pypi_0 pypimistune 2.0.4pypi_0 pypincurses 6.3 h5eee18b_3 numpy 1.15.4 pypi_0 pypiopenssl 1.1.1qh7f8727e_0 packaging 20.9 pypi_0 pypipathtools 0.1.2pypi_0 pypipillow5.0.0pypi_0 pypipip 9.0.1pypi_0 pypipkginfo 1.8.2pypi_0 pypiplatformdirs 2.0.2pypi_0 pypipluggy0.6.0pypi_0 pypipy 1.11.0 pypi_0 pypipycodestyle2.5.0pypi_0 pypipyflakes 2.1.1pypi_0 pypipygments 2.11.2 pypi_0 pypipyparsing 2.4.7pypi_0 pypipytest3.4.2pypi_0 pypipytest-cov2.6.0pypi_0 pypipytest-runner 2.11.1 pypi_0 pypipython3.5.6h12debd9_1 pytz .2.1 pypi_0 pypipyyaml5.3.1pypi_0 pypireadline 8.1.2h7f8727e_1 reedsolo 0.3 pypi_0 pypirequests 2.25.1 pypi_0 pypirequests-toolbelt 0.9.1pypi_0 pypiscipy 1.1.0pypi_0 pypisetuptools40.2.0 py35_0 six 1.16.0 pypi_0 pypisnowballstemmer 2.2.0pypi_0 pypisphinx1.7.1pypi_0 pypisphinx-rtd-theme0.2.4pypi_0 pypisphinxcontrib-serializinghtml 1.1.5pypi_0 pypisphinxcontrib-websupport 1.2.4pypi_0 pypisqlite3.39.2h5082296_0 tk 8.6.12h1ccaba5_0 torch 1.0.0pypi_0 pypitorchvision0.2.1pypi_0 pypitox 2.9.1pypi_0 pypitqdm 4.28.1 pypi_0 pypitwine 1.10.0 pypi_0 pypiurllib3 1.26.9 pypi_0 pypivirtualenv20.15.1 pypi_0 pypiwatchdog 0.8.3pypi_0 pypiwheel 0.30.0 pypi_0 pypixz 5.2.5h7f8727e_1 zipp 1.2.0pypi_0 pypizlib 1.2.12h7f8727e_2

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。