conda

conda update --all = “ImportError: DLL load failed: %1 is not a valid Win32 application.” when trying to import matplotlib.pyplot

百般思念 提交于 2020-01-06 14:48:08
问题 I use the Python distribution. Python 2.7 x64 with Windows 7 SP1 x64 Ultimate. After a conda update --all , whenever I try to import matplotlib.pyplot I get ImportError: DLL load failed: %1 is not a valid Win32 application. . Why? Full error stack: Traceback (most recent call last): File "C:\svn\hw4\code\test_con.py", line 1, in <module> import matplotlib.pyplot as plt File "C:\Anaconda\lib\site-packages\matplotlib\pyplot.py", line 109, in <module> _backend_mod, new_figure_manager, draw_if

How to install specific awscli version in conda env (running 3.6) when not found in current channels

和自甴很熟 提交于 2020-01-06 05:30:18
问题 I am trying to install a specific version of awscli within my conda environment (running python 3.6). I have tried adding conda-forge to my current channels, as suggested in another post. When I run the command conda install -p /Users/myname/anaconda3/envs/py36 awscli==1.11.156 -y It errors with this message: Solving environment: failed PackagesNotFoundError: The following packages are not available from current channels: - awscli==1.11.156 Current channels: - https://repo.continuum.io/pkgs

解决Anaconda无法更新的问题

醉酒当歌 提交于 2020-01-05 21:19:23
解决Anaconda无法更新的问题 2017年06月19日 21:50:03 阅读数:14007 原博地址:Anaconda更新失败解决方法 http://www.lqkweb.com/blog.php?id=18 问题描述: 刚开始使用Anaconda,在命令行中跟新包时,报如下错误: (D:\ProgramData\Anaconda3) D:\>conda upgrade --all Fetching package metadata ... CondaHTTPError: HTTP None None for url <https://repo.continuum.io/pkgs/free/win- 64/repodata.json.bz2> Elapsed: None 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(ReadTimeoutError("HTTPSConnectionPool(host='repo.continuum.io', port=443): Read timed out.",),) 原因说明:

pytorch PIP and CONDA error?

别来无恙 提交于 2020-01-05 07:50:11
问题 Guys I am new to python and deeplearning world I tried to install pytorch using conda I get this Error... (base) C:\WINDOWS\system32>conda install pytorch `Solving environment: failed PackagesNotFoundError: The following packages are not available from current channels: pytorch Current channels: https://repo.continuum.io/pkgs/main/win-64 https://repo.continuum.io/pkgs/main/noarch https://repo.continuum.io/pkgs/free/win-64 Couldnt post all the channels due to reputation issue on stackoverflow.

conda environment packages not coming to jupyter notebook

蓝咒 提交于 2020-01-05 07:46:24
问题 Packages imported in my conda environment are not available in Jupyter notebook started from that location. I'm not sure if my steps are right, or am I missing anything Creaed a folder structure for my work, and cd into my folder I created conda environment with the list of packages I want conda create -n practice1env scipy opencv Activated the environment source activate practice1env Cloned my GitHub repo git clone https://xxx Note that this contains jupyter notebooks opened a notebook file

conda update failed in windows 10

耗尽温柔 提交于 2020-01-05 07:18:13
问题 In Anaconda prompt as an administrator (Window 10 - 64 bit) after this command : conda update --all I see these errors as below: I want to update and install packages but after enter every command these errors appear. conda update --all Fetching package metadata ..........An unexpected error has occurred. Please consider posting the following information to the conda GitHub issue tracker at: https://github.com/conda/conda/issues Current conda install: platform : win-64 conda version : 4.2.9

Downsizing from Anaconda to Miniconda

▼魔方 西西 提交于 2020-01-05 07:17:46
问题 I had installed Anaconda on my system before I knew the difference between Anaconda and Miniconda. I would like to downsize to Miniconda since I don't want the bloat of Anaconda, but I already have a handful of environments set up. So far the only way I can think of migrating is to completely get rid of everything right now, install Miniconda, and then recreate my environments by hand, but that seems quite arduous. Is there a smarter way of going about this? 回答1: I agree with @darthbith:

keep the same conda env after entering screen

走远了吗. 提交于 2020-01-05 04:13:09
问题 I have tried the following at the end of my .screenrc conda activate ${CONDA_DEFAULT_ENV} in my bash terminal, I typed: conda activate atwork3 echo ${CONDA_DEFAULT_ENV} > atwork3 screen -S test > # starts screen OK but comes with env base echo ${CONDA_DEFAULT_ENV} > base I read that you cannot put bad commands in the .screenrc or the full file gets ignored which is probably what happens to me here I also tried things from how-to-open-tabs-windows-in-gnu-screen-execute-commands-within-each-one

Install nodeJS inside conda environment

[亡魂溺海] 提交于 2020-01-02 00:54:30
问题 I want to use NodeJS and AngularJS for a small project. Can I use conda's virtualenv to install these packages inside a separate virtual environment, and then have them removed from the system once I delete the virtualenv? 回答1: You can for sure use conda to create virtual environments for nodejs programs. $ conda create -yn myapp nodejs $ conda activate myapp $ node --version v8.11.3 $ npm --version 5.6.0 And then in the environment myapp , you can do all of your app development and once you

Best way to execute a python script in a given conda environment

杀马特。学长 韩版系。学妹 提交于 2020-01-02 00:52:16
问题 I want to execute a python script executed.py from another python script trigger.py using the subprocess package. The executed.py must be ran in a different conda environment than trigger.py (let say executed_env and trigger_env ). What is the best way to do that ? My current code of trigger.py is: command = "python executed.py --option1 -dir /path/to/dir" args = shlex.split(command) my_subprocess = subprocess.Popen(args) It returns an error since executed.py is ran in the trigger_env