Anaconda

Why has Anaconda added my default Python paths to the specific environment's path?

狂风中的少年 提交于 2020-01-02 06:08:30
问题 I have created an anaconda environment. When I activate the environment I can see that the environment is using a different Python version than my default Python version. This is correct. However, when I check python path within the activated environment. import sys from pprint import pprint pprint(sys.path) I can see that the first 4 items are pointing to the default Python installation. ['', 'C:\\Python27\\Lib\\site-packages\\distribute-0.6.35-py2.7.egg', 'C:\\Python27\\Lib\\site-packages\

Why has Anaconda added my default Python paths to the specific environment's path?

南楼画角 提交于 2020-01-02 06:08:29
问题 I have created an anaconda environment. When I activate the environment I can see that the environment is using a different Python version than my default Python version. This is correct. However, when I check python path within the activated environment. import sys from pprint import pprint pprint(sys.path) I can see that the first 4 items are pointing to the default Python installation. ['', 'C:\\Python27\\Lib\\site-packages\\distribute-0.6.35-py2.7.egg', 'C:\\Python27\\Lib\\site-packages\

PygraphViz Import Error With PyCharm

感情迁移 提交于 2020-01-02 01:12:53
问题 I believe I have installed pygraphviz on my Debian build. I can import it if I run Python from the command line: jon@debian:~/anaconda3/bin$ ipython Python 3.5.1 |Continuum Analytics, Inc.| (default, Dec 7 2015, 11:17:45) Type "copyright", "credits" or "license" for more information. IPython 4.1.2 -- An enhanced Interactive Python. ? -> Introduction and overview of IPython's features. %quickref -> Quick reference. help -> Python's own help system. object? -> Details about 'object', use

Tensorflow Windows Accessing Folders Denied:“NewRandomAccessFile failed to Create/Open: Access is denied. ; Input/output error”

こ雲淡風輕ζ 提交于 2020-01-02 01:01:29
问题 I recently installed Tensorflow for Windows. I am attempting a basic tutorial in which I need to access a folder containing sub-folders of images. I am not able to access the folder of images because “access is denied”. This happens both in the Anaconda 4.2 prompt and in Pycharm, and using the basic Python 3.5 distribution. I have given administrator privileges to everything involved and I reinstalled all of the software today so it is all updated to latest versions. Any thoughts or help

Basemap won't import because 'epsg' file or directory can't be found (MacOS, Anaconda, Jupyter Notebook)

可紊 提交于 2020-01-01 22:29:11
问题 I am trying to use the Matplotlib Basemap toolkit but am running into a FileNotFoundError related to epsg when I try importing it. I installed it using the following command: conda install -c conda-forge basemap Here's my import command: from mpl_toolkits.basemap import Basemap Here's the error: --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) <ipython-input-1-d9467465a3b6> in <module> ----> 1 from mpl_toolkits

I'm trying to update conda and get PermissionError(13, 'Access is denied')

余生颓废 提交于 2020-01-01 19:53:10
问题 I would like to update conda, anaconda, and python to the latest versions. I executed the following commands and received the following prompts. What's happening and how can I fix this? I appreciate the help C:\Users\nabr>conda update --all Solving environment: done ==> WARNING: A newer version of conda exists. <== current version: 4.4.10 latest version: 4.5.11 Please update conda by running $ conda update -n base conda # All requested packages already installed. C:\Users\nabr>conda update -n

Anaconda import mpi4py but not mpi

我的未来我决定 提交于 2020-01-01 19:43:08
问题 I installed anaconda on 32 bit windows system. Then installed the mpi4py package with conda install. conda search mpi4py Fetching package metadata ....... mpi4py 2.0.0 py27_0 defaults * 2.0.0 py27_msmpi_0 mpi4py 2.0.0 py34_0 defaults 2.0.0 py35_0 defaults The * should mean it is installed, right? So in the anaconda terminal prompt, I can run python and do import mpi4py with no errors. However, from mpi4py import MPI Traceback (most recent call last): File "<stdin>", line 1, in <module>

Library not loaded: @rpath/libopenblasp-r0.2.19.dylib

久未见 提交于 2020-01-01 17:08:10
问题 How should I fix this? Monas-MacBook-Pro:02_02 mona$ python Python 3.6.1 |Anaconda custom (x86_64)| (default, May 11 2017, 13:04:09) [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import cv2 Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: dlopen(/Users/mona/anaconda/lib/python3.6/site-packages/cv2.cpython-36m-darwin.so, 2): Library not loaded: @rpath/libopenblasp-r0

Why doesn't VSCode activate conda before starting the debugger?

你说的曾经没有我的故事 提交于 2020-01-01 16:55:51
问题 When I start the debugger in VSCode, the conda environment only gets activated after the debugging process has stopped with a "Missing required dependencies" import error. Immediately restarting the debugger works fine then. This problem occurs with the Anaconda "base" and other environments. Test code: import_pandas.py import pandas print("Pandas import succeeded!") VSCode Python Debug Console: Microsoft Windows [Version 10.0.16299.1146] (c) 2017 Microsoft Corporation. All rights reserved. C

Viewing history of conda transactions?

元气小坏坏 提交于 2020-01-01 11:58:05
问题 Is there a way of viewing past conda transactions? For instance, a history of all conda install actions I did in the current environment would be great. Thanks 回答1: There is a --revisions | -r flag for this. conda list --revisions Check the conda list --help for more info. If you'd like an exact history, there is a conda-meta/history log in every env. You could, for example, pull out every command ever executed in an env, plus a timestamp, using grep -B1 "^# cmd" my_env/conda-meta/history 来源: