conda

Conda set LD_LIBRARY_PATH for env only

左心房为你撑大大i 提交于 2019-12-17 07:21:14
问题 I have an installation of miniconda3 where I have created a virtual environment called py35. I have some libraries that I only want to use from within this environment. hence they are under /.../miniconda3/envs/py35/libs However they are not found from within the environment as LD_LIBRARY_PATH does not contain said folder. I now want to set LD_LIBRARY_PATH to include the /lib only when I am in the virtual environment. I was thinking of modifying the activate script miniconda uses to start the

Conda set LD_LIBRARY_PATH for env only

坚强是说给别人听的谎言 提交于 2019-12-17 07:21:09
问题 I have an installation of miniconda3 where I have created a virtual environment called py35. I have some libraries that I only want to use from within this environment. hence they are under /.../miniconda3/envs/py35/libs However they are not found from within the environment as LD_LIBRARY_PATH does not contain said folder. I now want to set LD_LIBRARY_PATH to include the /lib only when I am in the virtual environment. I was thinking of modifying the activate script miniconda uses to start the

Does Conda replace the need for virtualenv?

拈花ヽ惹草 提交于 2019-12-17 04:38:40
问题 I recently discovered Conda after I was having trouble installing SciPy, specifically on a Heroku app that I am developing. With Conda you create environments, very similar to what virtualenv does. My questions are: If I use Conda will it replace the need for virtualenv? If not, how do I use the two together? Do I install virtualenv in Conda, or Conda in virtualenv? Do I still need to use pip? If so, will I still be able to install packages with pip in an isolated environment? 回答1: Conda

How does using conda to install a package change my python version and remove conda?

隐身守侯 提交于 2019-12-17 04:34:13
问题 I had been using Anaconda with python 2.7 $ python Python 2.7.14 |Anaconda custom (64-bit)| (default, Dec 7 2017, 17:05:42) [GCC 7.2.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. When I decided to install tensorflow (since for some reason I had the non-gpu version) The command I used was: $ conda install -c anaconda tensorflow-gpu However, after it was done (detail on output of this cmd to follow), I no longer had conda: $ conda install -c conda-forge

How do I install Python OpenCV through Conda?

↘锁芯ラ 提交于 2019-12-17 02:03:32
问题 I'm trying to install OpenCV for Python through Anaconda, but I can't seem to figure this out. I tried conda install opencv conda install cv2 I also tried searching conda search cv No cigar. I ran across this which lists opencv as an included package: http://docs.continuum.io/anaconda/pkgs.html After running conda info I noticed my version is 3.4.1, but I couldn't seem to find any information about this version online. I'm pretty confused about this. Am I missing something pretty obvious here

Conda environments not showing up in Jupyter Notebook

末鹿安然 提交于 2019-12-16 22:59:13
问题 I installed Anaconda (with Python 2.7), and installed Tensorflow in an environment called tensorflow . I can import Tensorflow successfully in that environment. The problem is that Jupyter Notebook does not recognize the new environment I just created. No matter I start Jupyter Notebook from the GUI Navigator or from the command line within the tensorflow env, there is only one kernel in the menu called Python [Root] , and Tensorflow cannot be imported. Of course, I clicked on that option

本地安装旧版本Pytorch

我与影子孤独终老i 提交于 2019-12-16 07:17:52
旧版本网站 先conda安装,失败会有个网址,下载对应的 tar.bz2 文件,这个文件不要放在anaconda的pgks文件夹中 然后运行 conda install --use-local pytorch... 安装完之后是无法import pytorch的 执行 conda install -c anaconda intel-openmp 即可 然后安装torchvision和cudatoolkit conda installtorchvision cudatoolkit=10.0 -c pytorch 来源: CSDN 作者: KirutoCode 链接: https://blog.csdn.net/McEason/article/details/103536049

如何使用jupyter-lab

安稳与你 提交于 2019-12-16 02:36:07
在近几天开始使用jupyter-lab了,我的使用方式很简单。。有conda环境就好了,conda可以帮助你安装好jupyter-lab 和jupyter notebook两个。在安装的时候只要点了add to PATH这个选项,只需要在终端、命令行输入jupyter-lab即可。 来源: CSDN 作者: LVoffice 链接: https://blog.csdn.net/qq_39589163/article/details/103470147

【Python学习之路】使用 Anaconda

…衆ロ難τιáo~ 提交于 2019-12-15 21:33:55
使用 Anaconda Anaconda 是一个很好用的Python IDE,它集成了很多科学计算需要使用的 python 第三方工具包。 conda 的使用 根据自己的操作系统安装好 Anaconda 后,在命令行下输入: conda list 可以看已经安装好的 python 第三方工具包,这里我们使用 magic 命令 %%cmd 在 ipython cell 中来执行这个命令: !conda list # packages in environment at C:\Anaconda: # _license 1.1 py27_0 alabaster 0.7.3 py27_0 anaconda 2.3.0 np19py27_0 argcomplete 0.8.9 py27_0 astropy 1.0.3 np19py27_0 babel 1.3 py27_0 backports.ssl-match-hostname 3.4.0.2 <pip> basemap 1.0.7 np19py27_0 bcolz 0.9.0 np19py27_0 beautiful-soup 4.3.2 py27_1 beautifulsoup4 4.3.2 <pip> binstar 0.11.0 py27_0 bitarray 0.8.1 py27_1 blaze 0.8.0 <pip> blaze

服务器./bashrc 的重置和恢复

别说谁变了你拦得住时间么 提交于 2019-12-15 14:37:28
在使用服务器的时候,可能会出现配置文件/.bashrc突然清空等意外情况。本文记录了/.bashrc的恢复步骤。 1. 重置/.bashrc 服务器默认的.bashrc一般在/etc/skel目录下,因此通过以下语句即可重置清空的./bashrc文件 cp /etc/skel/.bashrc ~/ 注意 若通过挂载等方式利用windows复制则可能会出现错误: -bash: /home/XXX/.bashrc: line 1: syntax error near unexpected token `$'in\r'' 'bash: /home/XXX/.bashrc: line 1: `case $- in 故建议通过上述命令直接复制。 下面的步骤因人而异。 2. 添加anaconda的初始化命令 # added by Anaconda2 4.4.0 installer export PATH="/home/XXX/anaconda3/bin:$PATH" # added by Anaconda3 5.3.0 installer # >>> conda init >>> # !! Contents within this block are managed by 'conda init' !! __conda_setup="$(CONDA_REPORT_ERRORS=false '