conda

run a crontab job using an anaconda env

隐身守侯 提交于 2019-12-03 03:59:07
问题 I want to have a cron job execute a python script using an already existing anaconda python environment called my_env. The only thing I can think to do is have the cron job run a script called my_script.bash which in turn activates the env and then runs the python script. #!/bin/bash source activate my_env python ~/my_project/main.py Trying to execute this script from the command lines doesn't work: $ sh scripts/my_script.bash scripts/my_script.bash: 9: scripts/my_script.bash: source: not

Ubuntu中Pycharm配置anaconda报错:python packaging tools not found

拈花ヽ惹草 提交于 2019-12-03 03:58:54
首先检查Ubuntu中是否安装有对应python版本的pip和setuptools。 可以使用如下命令条: $ sudo apt - get install python3 - pip $ sudo apt - get install python3 - setiptools 如果已经安装上述命令仍旧无法解决。在终端运行conda,检查是否有解释器错误。 $ conda 如果报错解释器错误,则运行如下命令检查是否解释器路径错误。 $ cat /your path/anaconda3/bin/conda 可能会有如下显示: 检查第一排的python解释器路径是否正确。将其修改正确后可以解决问题。 原文参考地址 :conda命令将提示错误:“错误的解释器:没有这样的文件或目录” 来源: CSDN 作者: C_tubby 链接: https://blog.csdn.net/weixin_41690697/article/details/88119609

anaconda使用说明:anaconda-navigator: command not found

岁酱吖の 提交于 2019-12-03 03:58:34
下载anaconda安装好了之后使用命令 anaconda-navigator 提示 anaconda-navigator: command not found 如何解决? 首先 conda activate 激活anaconda的环境,你会发现此时你在anaconda的 (base) 环境下,然后再使用 conda activate [你自己定义的环境名] 即可激活你提前定义好的环境了,或者使用 conda create 命令( conda create -n [环境的名字] python=[2.7或者3.6] )创建新的环境(也可直接在anaconda软件中创建新环境)。 在激活anaconda环境之后你就可以使用 anaconda-navigator 了。 来源: CSDN 作者: 豌豆生 链接: https://blog.csdn.net/weixin_39585934/article/details/90384355

Can I choose where my conda environment is stored?

六眼飞鱼酱① 提交于 2019-12-03 03:41:48
问题 Can I change the path /Users/nolan/miniconda/envs/ to another one when creating a virtual environment ? I'd like it to be specific to my project directory. (As we can do with virtualenv) $conda info -e Using Anaconda Cloud api site https://api.anaconda.org # conda environments: # _build /Users/nolan/miniconda/envs/_build myen3 /Users/nolan/miniconda/envs/myen3 nolanemirot /Users/nolan/miniconda/envs/nolanemirot root * /Users/nolan/miniconda 回答1: You can change the environments directory by

conda install downgrade python version

跟風遠走 提交于 2019-12-03 03:35:23
I'm trying to downgrade python version of anaconda via conda install python=3.3 , but have following error: ~/anaconda3/bin$ ./conda install python=3.3 Fetching package metadata ......... Solving package specifications: . UnsatisfiableError: The following specifications were found to be in conflict: - gevent -> python 2.6* - python 3.3* Use "conda info <package>" to see the dependencies for each package. How to resolve conflicts with the packages? If you want to set specific version, use it like this: WARNING: This command will overwrite the default python version system-wise conda install

How to manage two pip versions in conda?

匿名 (未验证) 提交于 2019-12-03 03:08:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am working with conda in Windows. I accidentally installed two versions of pip using python -m pip install --upgrade pip Now when I run conda list from the base env: While pip -version gives pip 10.0.0 If I create a new env with conda create --name py3 pip and run pip --version I get an ImportError, however python -m pip --version works: How can I resolve this? 回答1: First of all I tried to replicate your issue and when I updated pip to 10.0.1 using python -m pip install --upgrade pip , the command pip --version seems to work for me. I

How to free disk space taken up by (ana)conda?

ε祈祈猫儿з 提交于 2019-12-03 03:05:20
问题 I am using the conda package manager - a lot. By now I have quite a few environments and a lot of downloaded packages taking a lot of space on my SSD. An obvious path to free some of that space is to use the command conda env export > environment.yml from https://conda.io/docs/user-guide/tasks/manage-environments.html#exporting-the-environment-file to export which packages my old, inactive projects use(d) and then delete these environments. As far as I understand, this should free some of the

How to identify conda package dependents?

匿名 (未验证) 提交于 2019-12-03 03:05:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: For a given conda package, how to I list the packages that depend on it? I recently installed anaconda on a university cluster that already had a version of MPI (openmpi). The mpich2 package and mpi4py packages installed with anaconda were fine for demos of mpi4py, but the mpi* compilers (mpicc, etc) were not compatable. So I conda remove 'd mpich2 and mpi4py and used pip to install mpi4py using the local MPI install and compilers. I had to dig around to find mpi4py 's dependencies and then mpich2 's dependents, for which I only

How do I use a conda environment with mod_wsgi?

匿名 (未验证) 提交于 2019-12-03 02:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: My first post, and I'm new to both Python and Apache, so please go easy on me. I have a Python web application in a conda environment that serves up content just fine using Flask. Now I need to serve everything with Apache instead of Flask. I can get Apache to run Python with mod_wsgi, but only with virtualenv. I tried installing virtualenv with Anaconda, but I received a warning that such a setup is unsupported and not recommended. So my question is this: How do I set up Apache to run my application in a conda environment? Here , there's a

Using (Ana)conda within PyCharm

匿名 (未验证) 提交于 2019-12-03 02:56:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I've got Pycharm 4 running on my Linux (Ubuntu 14.04) machine. In addition to the system python, I've also got Anaconda installed. Getting the two to play nicely together seems to be a bit of a problem... PyCharm provides some interesting integration for virtualenv s and pip , but the Anaconda Python distribution seems to prefer using its own conda tool for both activities. Is there a relatively simple/painless way to be able to use conda in conjunction with PyCharm? Not just as an alternative interpreter i.e. point PyCharm at the