miniconda

How can I launch an exe within a conda env

徘徊边缘 提交于 2019-12-21 16:36:07
问题 I'm using vscode in Windows 10 as my code editor, and want to make an easy way to launch it with the correct conda env to allow debugging. Currently I am having to open a command prompt, then activate the conda env, then paste the shortcut to vscode into the prompt to execute. Like so: cmd activate env-name "C:\Program Files (x86)\Microsoft VS Code\Code.exe" I have tried creating a batch file to wrap these calls, but unfortunately once I call "source activate" to start the conda env, the

Conda showing two versions of requests library

こ雲淡風輕ζ 提交于 2019-12-21 04:18:09
问题 I'm new to conda and seeing something strange but I don't actually know if it's a problem or not. I'm currently in the root environment. At some point I was trying to install pip in another environment, but accidentally just ran pip install requests . This seems to have installed it in my root environment: $ conda list | grep requests requests 2.12.4 py36_0 requests 2.13.0 <pip> And it looks like the pip version is what's getting picked up when I run python: $ python Python 3.6.0 |Continuum

Use anaconda environment without activate? (e.g. in Crontab)

寵の児 提交于 2019-12-20 14:14:58
问题 Being reading this http://conda.pydata.org/docs/using/envs.html Is it possible to run a conda python directly without having to source activate xxx ? In VirtualEnv, you can find the exact location of the python executable and run something like this ./path/to/my/venv/bin/python xxx.py Then xxx.py will be executed with environment on. It's handy to write one-linders in Crontab. Could I do the same with anaconda/miniconda environments? I've been trying this on Centos 6.5, system has python 2.5

How to install my own python module (package) via conda and watch its changes

六月ゝ 毕业季﹏ 提交于 2019-12-20 08:36:26
问题 I have a file mysql.py , which I use in almost all of my projects. Since I do not want to copy and paste the same file into each of these projects I wrote a module - possibly a package in the future. Question How do I add a local module to my conda environment, and automatically update or watch it when I change something in mysql.py ? How to do the same for a package? I would like to avoid to set up a local channel/repository and just reference to the folder with mysql.py . 回答1: While the

Can't activate virtual environment in Miniconda

只谈情不闲聊 提交于 2019-12-20 02:45:34
问题 When I create a virtual environment in Miniconda on Windows 8 and activate it in PowerShell ("activate env"), it says the environment is being activated, but upon typing "conda env list", it shows me that I'm still in the root environment. I checked the envs folder in Miniconda, and the folder with the env is there and seems to be fine with a Python distribution and everything, but for some reason I'm unable to go into the environment itself. For some reason, it works when I use the Command

Conda - Silently installing a package

╄→尐↘猪︶ㄣ 提交于 2019-12-18 10:58:45
问题 I am trying to automate the process of setting up a development environment with pandas package using conda. I installed conda, created and activated a dev environment. When I tried to install a package as follows, I noticed that there was a prompt to which a user had to key in Y or N (Proceed ([y]/n)?) for the installation to proceed successfully. $ conda install pandas Fetching package metadata: .... Solving package specifications: .................. Package plan for installation in

Miniconda “installs” numpy but Python can't import it

こ雲淡風輕ζ 提交于 2019-12-18 04:46:13
问题 So I have been having some trouble with this. I need to use numpy so that I can use OpenCV and so I installed Miniconda (Not Miniconda3 because we are working in Python 2.7) and I installed numpy with conda install numpy and it worked because when I run conda list I see that it is there: Microsoft Windows [Version 10.0.10240] (c) 2015 Microsoft Corporation. All rights reserved. C:\Users\joe30_000>conda list # packages in environment at C:\Users\joe30_000\Miniconda: # conda 3.17.0 py27_0 conda

Virtualenv OSError - setuptools pip wheel failed with error code 1

狂风中的少年 提交于 2019-12-18 04:01:52
问题 I get the following error message when trying to set up a virtual environment with virtualenv 15.0.2 but receive OSError setuptools pip wheel failed with error code 1. New python executable in /Users/nathmorissette/projects/tutorial/venv/bin/python Installing setuptools, pip, wheel... Complete output from command /Users/nathmorissett...rial/venv/bin/python - setuptools pip wheel: Traceback (most recent call last): File "<stdin>", line 4, in <module> File "/Users/nathmorissette/miniconda2/lib

Install Jupyter Notebook on Miniconda

大兔子大兔子 提交于 2019-12-17 17:49:08
问题 I installed Miniconda and I'm trying to use Jupyter Notebook with it but haven't been able to do so. After installing miniconda I ran the jupyter notebook command on my terminal and jupyter wasn't installed. I went ahead and installed it with the conda install jupyter . However, I once again ran jupyter notebook on my terminal and got the following console error: Emilios-MacBook-Pro:documents emilioramirezeguia$ jupyter notebook Traceback (most recent call last): File "/Users

PyCharm terminal doesn't activate conda environment

你说的曾经没有我的故事 提交于 2019-12-17 15:56:19
问题 I have a conda environment at the default location for windows, which is C:\ProgramData\Anaconda2\envs\myenv . Also, as recommended, the conda scripts and executables are not in the %PATH% environment variable. I opened a project in pycharm and pointed the python interpreter to C:\ProgramData\Anaconda2\envs\myenv\python.exe and pycharm seems to work well with the environment in the python console, in the run environment, and in debug mode. However, when opening the terminal the environment is