安装anaconda教程在ubuntu,ubuntu16.04安装anaconda

  安装anaconda教程在ubuntu,ubuntu16.04安装anaconda

  Ubuntu Anaconda和Python基本环境配置1。anaconda 1.1配置的基本操作添加环境变量

  #将anaconda的gddhm目录添加到PATH。根据版本的不同,也可能是~/anaconda 3/gddhmecho export path= ~/anaconda 3/gddhm:$ path ~/。bashrc #更新bashrc立即生效源码~/。巴沙尔-

  2019年3月29日修改

  将Anaconda目录直接添加到环境变量中,会对其他软件的使用造成很多不便,比如Python,Qt等等,这些都是系统默认的。相反,在/usr/gddhm目录中添加一个指向active的链接。

  sudln-s/home/user/anaconda 3/gddhm/activate/usr/gddhm/activate 1.2常用命令#查看信息conda info #查看创建的环境conda info -e#创建基于python的环境34,Name Python 34 conda Create-Name Python 34 Python=3.4 #启动Anaconda虚拟环境源activate [name]#退出虚拟环境源停用并更新conda的Python版本。

  Condinstal Python=x1.3添加国内镜condaconfig-添加频道https://mirrors.aliyun.com/pypi/simple/2。python pip的国内源码修改可用的国内源码

  阿里云http://mirrors.aliyun.com/pypi/simple/

  https://pypi.tuna.tsinghua.edu.cn/simple/清华大学

  中国科学技术大学https://pypi.mirrors.ustc.edu.cn/simple/

  http://pypi.douban.com/simple/豆瓣菜

  中国科学技术大学http://pypi.mirrors.ustc.edu.cn/simple/,学术大学

  直接在命令行使用。

  Pip安装包-i url被设置为默认源(Linux)

  修改pip ~/的默认配置文件。pip/pip.conf。

  该文件的内容如下:

  [global]index-URL=http://mirrors . aliyun . com/pypi/simple/[install]trusted-host=pypi . douban . com 3 . pip的常用命令列表已安装的软件包pip list以一定的格式输出软件包列表。

  该方法输出当前环境中所有已安装软件包的列表。要导出当前项目的依赖项,请参见联机安装包pipinstall软件包pipinstall-rrequirements.txt要仅导出项目依赖项软件包pip freeze dir/requirements.txt要安装本地软件包pip install dir/filepip install-use-wheel-no-index-find-links=wheel/Package pip install-no-index-f=dir/Package升级包pip install -U package卸载软件包pip uninstall-r requirements.txt升级pip pip install -U pip 4 .只导出项目依赖包pip安装pipreqs #使用起来也很简单。转到项目的根目录,pippreqs。1参见https://www.cnblogs.com/sunnydou/p/5801760.html.

  2 https://www.cnblogs.com/xueweihan/p/4981704.html

郑重声明:本文由网友发布,不代表盛行IT的观点,版权归原作者所有,仅为传播更多信息之目的,如有侵权请联系,我们将第一时间修改或删除,多谢。

留言与评论(共有 条评论)
   
验证码: