anaconda使用记录
生活随笔
收集整理的這篇文章主要介紹了
anaconda使用记录
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
文章目錄
- 配置jupyter的工作路徑
創建一個新的環境: conda create -n CCF python=3.6
查看conda的源:conda config --show-source
查看有哪些環境:conda env list
激活某個環境:conda activate CCF
刪除某個環境:conda remove -n CCF --all
更新conda 到最新的版本:conda update conda
查找某個包:conda search pytorch
安裝某個包:conda install pytorch
``
查看當前環境包的安裝情況:
(CCF) jemy@jemy-T50Ti:~$ conda list # packages in environment at /home/jemy/anaconda3/envs/CCF: # # Name Version Build Channel _libgcc_mutex 0.1 main defaults ca-certificates 2019.8.28 0 defaults certifi 2019.9.11 py36_0 defaults libedit 3.1.20181209 hc058e9b_0 defaults libffi 3.2.1 hd88cf55_4 defaults libgcc-ng 9.1.0 hdf63c60_0 defaults libstdcxx-ng 9.1.0 hdf63c60_0 defaults ncurses 6.1 he6710b0_1 defaults openssl 1.1.1d h7b6447c_1 defaults pip 19.2.3 py36_0 defaults python 3.6.9 h265db76_0 defaults readline 7.0 h7b6447c_5 defaults setuptools 41.2.0 py36_0 defaults sqlite 3.29.0 h7b6447c_0 defaults tk 8.6.8 hbc83047_0 defaults wheel 0.33.6 py36_0 defaults xz 5.2.4 h14c3975_4 defaults zlib 1.2.11 h7b6447c_3 defaults (CCF) jemy@jemy-T50Ti:~$pip安裝的時候指定源:
(CCF) jemy@jemy-T50Ti:/usr/local/CHINESE-OCR$ pip install numpy -i https://pypi.mirrors.ustc.edu.cn/simple/ Looking in indexes: https://pypi.mirrors.ustc.edu.cn/simple/ Collecting numpyDownloading https://mirrors.tuna.tsinghua.edu.cn/pypi/web/packages/e5/e6/c3fdc53aed9fa19d6ff3abf97dfad768ae3afce1b7431f7500000816bda5/numpy-1.17.2-cp36-cp36m-manylinux1_x86_64.whl (20.4MB)|████████████████████████████████| 20.4MB 6.3MB/s Installing collected packages: numpy Successfully installed numpy-1.17.2 (CCF) jemy@jemy-T50Ti:/usr/local/CHINESE-OCR$關閉某個環境:``
報錯:
Collecting package metadata (repodata.json): failedCondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://mirrors.ustc.edu.cn/anaconda/cloud/menpo/linux-64/repodata.json> Elapsed: -An HTTP error occurred when trying to retrieve this URL. HTTP errors are often intermittent, and a simple retry will get you on your way. ConnectionError(MaxRetryError("HTTPSConnectionPool(host='mirrors.ustc.edu.cn', port=443): Max retries exceeded with url: /anaconda/cloud/menpo/linux-64/repodata.json (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f671d7cb390>: Failed to establish a new connection: [Errno 101] Network is unreachable'))"))配置jupyter的工作路徑
總結
以上是生活随笔為你收集整理的anaconda使用记录的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: TensorFlow学习笔记之六(循环神
- 下一篇: java中的比较