I have tried to install 'gtk' for python on Ubuntu (14.04). It seems to be installed OK. However I'm unable to import it.
$ python --version
Python 2.7.13 :: Anaconda 2.5.0 (64-bit)
$ python -c 'import gtk'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named gtk
$ which python
It seems to be installed OK...
$ conda list | grep -i gtk
conda list |grep -i gtk
gtk 3.16.6 2 ostrokach
I've only got one conda environment. PYTHONPATH and PYTHONHOME are unset.
$ conda info -a
Current conda install:
platform : linux-64
conda version : 4.3.24
conda is private : False
conda-env version : 4.3.24
conda-build version : 1.19.0
python version : 2.7.13.final.0
requests version : 2.18.3
root environment : /home/manohar/anaconda2 (writable)
default environment : /home/manohar/anaconda2
envs directories : /home/manohar/anaconda2/envs
/home/manohar/.conda/envs
package cache : /home/manohar/anaconda2/pkgs
/home/manohar/.conda/pkgs
channel URLs : https://conda.anaconda.org/brian-team/linux-64
https://conda.anaconda.org/brian-team/noarch
https://repo.continuum.io/pkgs/free/linux-64
https://repo.continuum.io/pkgs/free/noarch
https://repo.continuum.io/pkgs/r/linux-64
https://repo.continuum.io/pkgs/r/noarch
https://repo.continuum.io/pkgs/pro/linux-64
https://repo.continuum.io/pkgs/pro/noarch
config file : /home/manohar/.condarc
netrc file : None
offline mode : False
user-agent : conda/4.3.24 requests/2.18.3 CPython/2.7.13 Linux/3.13.0-123-generic debian/jessie/sid glibc/2.19
UID:GID : 1000:1000
# conda environments:
#
root * /home/manohar/anaconda2
sys.version: 2.7.13 |Anaconda 2.5.0 (64-bit)| (defaul...
sys.prefix: /home/manohar/anaconda2
sys.executable: /home/manohar/anaconda2/bin/python
conda location: /home/manohar/anaconda2/lib/python2.7/site-packages/conda
conda-build: /home/manohar/anaconda2/bin/conda-build
conda-convert: /home/manohar/anaconda2/bin/conda-convert
conda-develop: /home/manohar/anaconda2/bin/conda-develop
conda-env: /home/manohar/anaconda2/bin/conda-env
conda-index: /home/manohar/anaconda2/bin/conda-index
conda-inspect: /home/manohar/anaconda2/bin/conda-inspect
conda-metapackage: /home/manohar/anaconda2/bin/conda-metapackage
conda-pipbuild: /home/manohar/anaconda2/bin/conda-pipbuild
conda-server: /home/manohar/anaconda2/bin/conda-server
conda-sign: /home/manohar/anaconda2/bin/conda-sign
conda-skeleton: /home/manohar/anaconda2/bin/conda-skeleton
user site dirs:
CIO_TEST: <not set>
CONDA_DEFAULT_ENV: <not set>
CONDA_ENVS_PATH: <not set>
LD_LIBRARY_PATH: <not set>
PATH: /home/manohar/anaconda2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/bin:/usr/lib/jvm/default-java/bin
PYTHONHOME: <not set>
PYTHONPATH: <not set>
License directories:
/home/manohar/.continuum
/home/manohar/anaconda2/licenses
License files (license*.txt):
Package/feature end dates:
Any ideas as to what to check next? There are a plethora of gtk-related files inside ~/anancoda2:
~/anaconda2/share/gtk-3.0 (containing gtkbuilder.rng)
~/anaconda2/include/gtk-3.0 (many header files and subfolders)
~/anaconda2/bin/
gtk3-demo-application
gtk3-demo
gtk3-icon-browser
gtk3-widget-factory
gtk-encode-symbolic-svg
gtk-launch
gtk-query-immodules-3.0
gtk-update-icon-cache
~/anaconda2/lib/
gtk-2.0
gtk-3.0
libgtk-3.la
libgtk-3.so
libgtk-3.so.0
libgtk-3.so.1600.6
Related
I want to create a new conda environment.
However, I get the following error message:
(base) ➜ ~ conda env create -n ml
Collecting package metadata (repodata.json): done
Solving environment: failed
ResolvePackageNotFound:
- libspatialindex==1.9.0=h6de7cb9_1
- libgdal==2.4.0=h89caebc_1002
- gdal==2.4.0=py37h0e3174d_1002
- openblas==0.3.5=h436c29b_1001
- libcxxabi==8.0.0=2
I removed all of my old environments (they had become bloated) and uninstalled and reinstalled a new miniconda3 installation.
(base) ➜ ~ conda env list
# conda environments:
#
base * /Users/tommylees/miniconda3
Here is some other information:
(base) ➜ ~ conda info
active environment : base
active env location : /Users/tommylees/miniconda3
shell level : 1
user config file : /Users/tommylees/.condarc
populated config files :
conda version : 4.9.2
conda-build version : not installed
python version : 3.8.6.final.0
virtual packages : __osx=10.15.7=0
__unix=0=0
__archspec=1=x86_64
base environment : /Users/tommylees/miniconda3 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/osx-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/osx-64
https://repo.anaconda.com/pkgs/r/noarch
package cache : /Users/tommylees/miniconda3/pkgs
/Users/tommylees/.conda/pkgs
envs directories : /Users/tommylees/miniconda3/envs
/Users/tommylees/.conda/envs
platform : osx-64
user-agent : conda/4.9.2 requests/2.25.1 CPython/3.8.6 Darwin/19.6.0 OSX/10.15.7
UID:GID : 501:20
netrc file : None
offline mode : False
(base) ➜ ~ cat /Users/tommylees/.condarc
cat: /Users/tommylees/.condarc: No such file or directory
(base) ➜ ~ ls /Users/tommylees/.conda/envs
ls: /Users/tommylees/.conda/envs: No such file or directory
I do not understand why the conda installer is still looking for gdal or other packages which were previously installed but I thought I had removed.
Command used to install which is failing. There are no version currently getting installed on Windows 10.
conda install dask-xgboost
Environment Details:
conda 4.8.4
Python 3.7.7
UnsatisfiableError: The following specifications were found to be incompatible with your system:
feature:/win-32::__cuda==10.2=0
Complete conda environment information
(oto) C:\WINDOWS\system32>conda info -a
active environment : oto
active env location : C:\ProgramData\Anaconda3\envs\oto
shell level : 1
user config file : C:\Users\XX\.condarc
populated config files : C:\Users\XX\.condarc
conda version : 4.8.3
conda-build version : 3.17.6
python version : 3.7.1.final.0
virtual packages : __cuda=10.2
base environment : C:\ProgramData\Anaconda3 (writable)
channel URLs : https://conda.anaconda.org/mndrake/win-64
https://conda.anaconda.org/mndrake/noarch
https://conda.anaconda.org/intel/win-64
https://conda.anaconda.org/intel/noarch
https://conda.anaconda.org/conda-forge/win-64
https://conda.anaconda.org/conda-forge/noarch
https://conda.anaconda.org/legendu/win-64
https://conda.anaconda.org/legendu/noarch
https://conda.anaconda.org/anaconda/win-64
https://conda.anaconda.org/anaconda/noarch
https://conda.anaconda.org/menpo/win-64
https://conda.anaconda.org/menpo/noarch
https://repo.anaconda.com/pkgs/main/win-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/win-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/msys2/win-64
https://repo.anaconda.com/pkgs/msys2/noarch
package cache : C:\ProgramData\Anaconda3\pkgs
C:\Users\XX\.conda\pkgs
C:\Users\XX\AppData\Local\conda\conda\pkgs
envs directories : C:\ProgramData\Anaconda3\envs
C:\Users\XX\.conda\envs
C:\Users\XX\AppData\Local\conda\conda\envs
platform : win-64
user-agent : conda/4.8.3 requests/2.21.0 CPython/3.7.1 Windows/10 Windows/10.0.17763
administrator : True
netrc file : None
offline mode : False
# conda environments:
#
C:\ProgramData\Anaconda2
base C:\ProgramData\Anaconda3
oto * C:\ProgramData\Anaconda3\envs\oto
sys.version: 3.7.1 (default, Dec 10 2018, 22:54:23) [...
sys.prefix: C:\ProgramData\Anaconda3
sys.executable: C:\ProgramData\Anaconda3\python.exe
conda location: C:\ProgramData\Anaconda3\lib\site-packages\conda
conda-build: C:\ProgramData\Anaconda3\Scripts\conda-build.exe
conda-convert: C:\ProgramData\Anaconda3\Scripts\conda-convert.exe
conda-debug: C:\ProgramData\Anaconda3\Scripts\conda-debug.exe
conda-develop: C:\ProgramData\Anaconda3\Scripts\conda-develop.exe
conda-env: C:\ProgramData\Anaconda3\Scripts\conda-env.exe
conda-index: C:\ProgramData\Anaconda3\Scripts\conda-index.exe
conda-inspect: C:\ProgramData\Anaconda3\Scripts\conda-inspect.exe
conda-metapackage: C:\ProgramData\Anaconda3\Scripts\conda-metapackage.exe
conda-render: C:\ProgramData\Anaconda3\Scripts\conda-render.exe
conda-server: C:\ProgramData\Anaconda3\Scripts\conda-server.exe
conda-skeleton: C:\ProgramData\Anaconda3\Scripts\conda-skeleton.exe
conda-verify: C:\ProgramData\Anaconda3\Scripts\conda-verify.exe
user site dirs: C:\Users\XX\AppData\Roaming\Python\Python37
CIO_TEST: <not set>
CONDA_BAT: C:\ProgramData\Anaconda3\condabin\conda.bat
CONDA_DEFAULT_ENV: oto
CONDA_EXE: C:\ProgramData\Anaconda3\condabin\..\Scripts\conda.exe
CONDA_EXES: "C:\ProgramData\Anaconda3\condabin\..\Scripts\conda.exe"
CONDA_PREFIX: C:\ProgramData\Anaconda3\envs\oto
CONDA_PROMPT_MODIFIER: (oto)
CONDA_PYTHON_EXE: C:\ProgramData\Anaconda3\python.exe
CONDA_ROOT: C:\ProgramData\Anaconda3
CONDA_SHLVL: 1
CUDA_PATH: C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2
GDAL_DRIVER_PATH: C:\Users\XX\AppData\Local\conda\conda\envs\Lib\site-packages\osgeo\gdalplugins
GIT_LFS_PATH: C:\Program Files\Git LFS
HOMEPATH: \Users\XX
NVTOOLSEXT_PATH: C:\Program Files\NVIDIA Corporation\NvToolsExt\
PATH: C:\ProgramData\Anaconda3;C:\ProgramData\Anaconda3\Library\mingw-w64\bin;C:\ProgramData\Anaconda3\Library\usr\bin;C:\ProgramData\Anaconda3\Library\bin;C:\ProgramData\Anaconda3\Scripts;C:\ProgramData\Anaconda3\bin;C:\ProgramData\Anaconda3\envs\oto;C:\ProgramData\Anaconda3\envs\oto\Library\mingw-w64\bin;C:\ProgramData\Anaconda3\envs\oto\Library\usr\bin;C:\ProgramData\Anaconda3\envs\oto\Library\bin;C:\ProgramData\Anaconda3\envs\oto\Scripts;C:\ProgramData\Anaconda3\envs\oto\bin;C:\ProgramData\Anaconda3\condabin;C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin;C:\ProgramData\DockerDesktop\version-bin;C:\Program Files\Docker\Docker\Resources\bin;C:\devprogs\java\jdk8u252-b09\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.2\libnvvp;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Git\cmd;C:\devprogs\apache-maven-3.5.2\bin;C:\devprogs\sonar-scanner-3.0.3.778-windows\bin;C:\Program Files\FMEServer\Utilities\jre\bin\client;C:\Program Files\FMEServer\Server\fme;C:\Program Files\FMEServer;C:\Program Files\Cloud Foundry;C:\devprogs\apache-tomcat-8.0.39\bin;C:\Program Files\MIT\Kerberos\bin;C:\ProgramData\chocolatey\bin;C:\Program Files (x86)\Airtame;C:\Program Files (x86)\Yarn\bin;C:\Program Files\FME;C:\devprogs\release-1900-x64-gdal-2-3-1-mapserver-7-2-0\bin;C:\hadoop;C:\Program Files\Amazon\AWSCLI\bin;C:\codelab\groovy\groovy-2.5.5\bin;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Python27\ArcGIS10.3\Lib;C:\Program Files\Git LFS;C:\Users\XX\AppData\Local\conda\conda\envs\Lib\site-packages\osgeo;C:\Program Files\nodejs;C:\devprogs\terraform_0.12.12_windows_amd64;C:\Program Files\FME19;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\ProgramData\Anaconda3;C:\ProgramData\Anaconda3\Scripts;C:\ProgramData\Anaconda3\Library\bin;C:\Users\XX\scoop\shims;C:\Users\XX\AppData\Local\Microsoft\WindowsApps;C:\Users\XX\AppData\Roaming\npm;C:\Users\XX\AppData\Local\Yarn\bin;C:\Users\XX\AppData\Local\Programs\Fiddler;C:\Users\XX\AppData\Local\Microsoft\WindowsApps;C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.2.4\bin;C:\Users\XX\AppData\Local\Programs\Microsoft VS Code\bin;C:\ProgramData\Anaconda3\envs\oto
PSMODULEPATH: C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
PYTHONPATH: C:\Program Files (x86)\ArcGIS\Desktop10.3\arcpy;C:\Program Files (x86)\ArcGIS\Desktop10.3\bin;C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcToolbox\Scripts;C:\ProgramData\Anaconda3\envs\oto\;
REQUESTS_CA_BUNDLE: <not set>
SSL_CERT_FILE: <not set>
I have different anaconda environments. When starting up one of them it seems as if sys.path is still set to some totally wrong directory. Am I not understanding the concepts of environments correctly or is this an error concerning my anaconda setup?
My environments:
fabianwerner ~$ conda env list
# conda environments:
#
base * /Users/fabianwerner/anaconda3/anaconda3
my-rdkit-env /Users/fabianwerner/anaconda3/anaconda3/envs/my-rdkit-env
openpose /Users/fabianwerner/anaconda3/anaconda3/envs/openpose
fabianwerner ~$
I activate the environment 'openpose':
fabianwerner ~$ conda activate openpose
(openpose) fabianwerner ~$
I will try to import 'keras' so let us make sure that it is installed:
(openpose) fabianwerner ~$ pip list | grep -i keras
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
Keras (2.2.4)
Keras-Applications (1.0.7)
Keras-Preprocessing (1.0.9)
You are using pip version 9.0.1, however version 19.1.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
(openpose) fabianwerner ~$
I start python and try to import keras:
(openpose) fabianwerner ~$ python
Python 3.6.5 |Anaconda, Inc.| (default, Apr 26 2018, 08:42:37)
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import keras
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'keras'
>>>
Let us check where python looks for modules:
>>> import sys
>>> print(sys.path)
['', '/Users/fabianwerner/anaconda3/anaconda3/envs/my-rdkit-env/lib/python36.zip', '/Users/fabianwerner/anaconda3/anaconda3/envs/my-rdkit-env/lib/python3.6', '/Users/fabianwerner/anaconda3/anaconda3/envs/my-rdkit-env/lib/python3.6/lib-dynload', '/Users/fabianwerner/.local/lib/python3.6/site-packages', '/Users/fabianwerner/anaconda3/anaconda3/envs/my-rdkit-env/lib/python3.6/site-packages']
>>>
so I activated the environment 'openpose' but it still looks for modules in the other (wrong!) environment 'my-rdkit-env'!
How to fix this?
EDIT:
I cannot see any obvious problem with the anaconda setup as conda info -a gives the right path:
(openpose) fabianwerner ~$ conda info -a
active environment : openpose
active env location : /Users/fabianwerner/anaconda3/anaconda3/envs/openpose
shell level : 2
user config file : /Users/fabianwerner/.condarc
populated config files :
conda version : 4.5.11
conda-build version : 3.15.1
python version : 3.7.0.final.0
base environment : /Users/fabianwerner/anaconda3/anaconda3 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/osx-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/free/osx-64
https://repo.anaconda.com/pkgs/free/noarch
https://repo.anaconda.com/pkgs/r/osx-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/pro/osx-64
https://repo.anaconda.com/pkgs/pro/noarch
package cache : /Users/fabianwerner/anaconda3/anaconda3/pkgs
/Users/fabianwerner/.conda/pkgs
envs directories : /Users/fabianwerner/anaconda3/anaconda3/envs
/Users/fabianwerner/.conda/envs
platform : osx-64
user-agent : conda/4.5.11 requests/2.19.1 CPython/3.7.0 Darwin/17.7.0 OSX/10.13.6
UID:GID : 502:20
netrc file : None
offline mode : False
# conda environments:
#
base /Users/fabianwerner/anaconda3/anaconda3
my-rdkit-env /Users/fabianwerner/anaconda3/anaconda3/envs/my-rdkit-env
openpose * /Users/fabianwerner/anaconda3/anaconda3/envs/openpose
strokinat0r /Users/fabianwerner/anaconda3/anaconda3/envs/strokinat0r
sys.version: 3.7.0 (default, Jun 28 2018, 07:39:16)
...
sys.prefix: /Users/fabianwerner/anaconda3/anaconda3
sys.executable: /Users/fabianwerner/anaconda3/anaconda3/bin/python
conda location: /Users/fabianwerner/anaconda3/anaconda3/lib/python3.7/site-packages/conda
conda-build: /Users/fabianwerner/anaconda3/anaconda3/bin/conda-build
conda-convert: /Users/fabianwerner/anaconda3/anaconda3/bin/conda-convert
conda-develop: /Users/fabianwerner/anaconda3/anaconda3/bin/conda-develop
conda-env: /Users/fabianwerner/anaconda3/anaconda3/bin/conda-env
conda-index: /Users/fabianwerner/anaconda3/anaconda3/bin/conda-index
conda-inspect: /Users/fabianwerner/anaconda3/anaconda3/bin/conda-inspect
conda-metapackage: /Users/fabianwerner/anaconda3/anaconda3/bin/conda-metapackage
conda-render: /Users/fabianwerner/anaconda3/anaconda3/bin/conda-render
conda-server: /Users/fabianwerner/anaconda3/anaconda3/bin/conda-server
conda-skeleton: /Users/fabianwerner/anaconda3/anaconda3/bin/conda-skeleton
user site dirs: ~/.local/lib/python3.6
CIO_TEST: <not set>
CONDA_DEFAULT_ENV: openpose
CONDA_EXE: /Users/fabianwerner/anaconda3/anaconda3/bin/conda
CONDA_PREFIX: /Users/fabianwerner/anaconda3/anaconda3/envs/openpose
CONDA_PREFIX_1: /Users/fabianwerner/anaconda3/anaconda3
CONDA_PROMPT_MODIFIER: (openpose)
CONDA_PYTHON_EXE: /Users/fabianwerner/anaconda3/anaconda3/bin/python
CONDA_ROOT: /Users/fabianwerner/anaconda3/anaconda3
CONDA_SHLVL: 2
PATH: /Users/fabianwerner/anaconda3/anaconda3/envs/openpose/bin:/Users/fabianwerner/anaconda3/anaconda3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/GIMP-2.10.app/Contents/MacOS
REQUESTS_CA_BUNDLE: <not set>
SSL_CERT_FILE: <not set>
WARNING: could not import _license.show_info
# try:
# $ conda install -n root _license
(openpose) fabianwerner ~$
Also, I do not seem to have an environment variable set that relates to python:
(openpose) fabianwerner ~$ printenv | grep -i python
CONDA_PYTHON_EXE=/Users/fabianwerner/anaconda3/anaconda3/bin/python
(openpose) fabianwerner ~$
My setup:
Mac OS-X 10.13.6 (High Sierra)
anaconda version 4.5.11
Thanks,
FW
The Python interpreter you started in your example is not the one in the environment.
conda info -a says python version : 3.7.0.final.0 and yet your interpreter says Python 3.6.5
The problem should become apparent when you activate your environment and run which python which should be pointing to the activated env but probably doesn't.
How did you create those environments? Make sure to set the python=XX option or the new environment uses the interpreter from the base/root environment rather than installing a new one. I.e. conda create -n my_environment python=3.7
Edit:
Sorry, I just looked up and tested conda info -a. python version : XX seems to be referring to the base env not the currently active one.
I'm leaving this answer here, since even though my reasoning seems to be wrong, it may still be helpful.
Yet another Import Error issue, I know...
I have been through many posts on stackoverflow about this issue but nothing seem to help
Here is the thing, I am not a windows person, I have used anaconda on mac and Linux for quite a while but now I have to train someone on Python with windows10.
So I tried to install Anaconda, thinking oh well that should be easy...
What I did :
Install miniconda3
Create a conda environment named 'first' - activated it
Install numpy scipy and geopandas (conda install -c conda-forge geopandas)
Start IPython
Typed import geopandas and got an Import Error ModuleNotFoundError: No module named 'geopandas'
Note that Geopandas and all packages appear in the pip list of my environment
So then I Import sys and typed sys.path with this result (sys.executable was fine)
['',
'C:\\Users\\mine\\Miniconda3\\Scripts',
'C:\\Users\\mine\\Miniconda3\\python36.zip',
'C:\\Users\\mine\\Miniconda3\\DLLs',
'C:\\Users\\mine\\Miniconda3\\lib',
'C:\\Users\\mine\\Miniconda3',
'C:\\Users\\mine\\Miniconda3\\lib\\site-packages',
'C:\\Users\\mine\\Miniconda3\\lib\\site-packages\\win32',
'C:\\Users\\mine\\Miniconda3\\lib\\site-packages\\win32\\lib',
'C:\\Users\\mine\\Miniconda3\\lib\\site-packages\\Pythonwin',
'C:\\Users\\mine\\Miniconda3\\lib\\site-packages\\IPython\\extensions',
'C:\\Users\\mine\\.ipython']
I believe I should see something about my conda environment in there
c:\users\mine\miniconda3\envs\first\
What did I do wrong? How do I fix it and why do you think that happened? Should I report it to anaconda as it seems to be a pretty annoying thing.
In case that helps :
(first) C:\Users\mine>conda info -a
active environment : first
active env location : C:\Users\mine\Miniconda3\envs\first
shell level : 2
user config file : C:\Users\mine\.condarc
populated config files :
conda version : 4.4.10
conda-build version : not installed
python version : 3.6.3.final.0
base environment : C:\Users\mine\Miniconda3 (writable)
channel URLs : https://repo.continuum.io/pkgs/main/win-64
https://repo.continuum.io/pkgs/main/noarch
https://repo.continuum.io/pkgs/free/win-64
https://repo.continuum.io/pkgs/free/noarch
https://repo.continuum.io/pkgs/r/win-64
https://repo.continuum.io/pkgs/r/noarch
https://repo.continuum.io/pkgs/pro/win-64
https://repo.continuum.io/pkgs/pro/noarch
https://repo.continuum.io/pkgs/msys2/win-64
https://repo.continuum.io/pkgs/msys2/noarch
package cache : C:\Users\mine\Miniconda3\pkgs
C:\Users\mine\AppData\Local\conda\conda\pkgs
envs directories : C:\Users\mine\Miniconda3\envs
C:\Users\mine\AppData\Local\conda\conda\envs
C:\Users\mine\.conda\envs
platform : win-64
user-agent : conda/4.4.10 requests/2.18.4 CPython/3.6.3 Windows/10 Windows/10.0.16299
administrator : False
netrc file : None
offline mode : False
# conda environments:
#
base C:\Users\mine\Miniconda3
first * C:\Users\mine\Miniconda3\envs\first
sys.version: 3.6.3 |Anaconda, Inc.| (default, Nov 8 ...
sys.prefix: C:\Users\mine\Miniconda3
sys.executable: C:\Users\mine\Miniconda3\python.exe
conda location: C:\Users\mine\Miniconda3\lib\site-packages\conda
conda-build: None
conda-env: C:\Users\mine\Miniconda3\Scripts\conda-env.exe
user site dirs:
CIO_TEST: <not set>
CONDA_DEFAULT_ENV: first
CONDA_PREFIX: C:\Users\mine\Miniconda3\envs\first
CONDA_PREFIX_1: C:\Users\mine\Miniconda3
CONDA_PROMPT_MODIFIER: (first)
CONDA_PYTHON_EXE: C:\Users\mine\Miniconda3\python.exe
CONDA_ROOT: C:\Users\mine\Miniconda3
CONDA_SHLVL: 2
HOMEPATH: \Users\mine
PATH: C:\Users\mine\Miniconda3\envs\first;C:\Users\mine\Miniconda3\envs\first\Library\mingw-w64\bin;C:\Users\mine\Miniconda3\envs\first\Library\usr\bin;C:\Users\mine\Miniconda3\envs\first\Library\bin;C:\Users\mine\Miniconda3\envs\first\Scripts;C:\Users\mine\Miniconda3\envs\first\bin;C:\Users\mine\Miniconda3;C:\Users\mine\Miniconda3\Library\mingw-w64\bin;C:\Users\mine\Miniconda3\Library\usr\bin;C:\Users\mine\Miniconda3\Library\bin;C:\Users\mine\Miniconda3\Scripts;C:\Users\mine\Miniconda3\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Users\mine\AppData\Local\Microsoft\WindowsApps;
PSMODULEPATH: C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
PYTHONIOENCODING: 1252
REQUESTS_CA_BUNDLE: <not set>
SSL_CERT_FILE: <not set>
You also need to install IPython into your new environment:
conda install ipython
otherwise it uses the ipython form "outside" the environment because it is a command line app and not necessary connected to an environment.
You can check IPython you use with:
where ipython
im using GCE with conda in windows.
I have a Virtualenv made with conda using the following command:
conda create --name myenv python=2.7.8
and then i installed a module that i want to use with my app called stripe
conda install --name myenv stripe
The problem is that when i run my GCE app launcher i get the following error:
import stripe
ImportError: No module named stripe
which is weird because i have my GCE app launcher pointing at C:/Miniconda2/envs/myenv/pythonw.exe
if i do:
activate myenv
and then i go into python and import stripe i get no problem, but when i run the launcher i get that error in the logs, this happens for all the packages i want to use.
this is what i get running conda info -a:
[myenv] C:\Users\MyUser\Documents\myenv\MyGCEApp>conda info -a
Using Anaconda Cloud api site https://api.anaconda.org
Current conda install:
platform : win-64
conda version : 4.0.5
conda-build version : 1.20.1
python version : 2.7.11.final.0
requests version : 2.9.1
root environment : C:\Miniconda2 (writable)
default environment : C:\Miniconda2\envs\myenv
envs directories : C:\Miniconda2\envs
package cache : C:\Miniconda2\pkgs
channel URLs : https://repo.continuum.io/pkgs/free/win-64/
https://repo.continuum.io/pkgs/free/noarch/
https://repo.continuum.io/pkgs/pro/win-64/
https://repo.continuum.io/pkgs/pro/noarch/
config file : None
is foreign system : False
# conda environments:
#
py27 C:\Miniconda2\envs\py27
myenv * C:\Miniconda2\envs\myenv
work279 C:\Miniconda2\envs\work279
root C:\Miniconda2
sys.version: 2.7.11 |Continuum Analytics, Inc.| (defa...
sys.prefix: C:\Miniconda2
sys.executable: C:\Miniconda2\python.exe
conda location: C:\Miniconda2\lib\site-packages\conda
conda-build: C:\Miniconda2\Scripts\conda-build.exe
conda-convert: C:\Miniconda2\Scripts\conda-convert.exe
conda-develop: C:\Miniconda2\Scripts\conda-develop.exe
conda-env: C:\Miniconda2\Scripts\conda-env.exe
conda-index: C:\Miniconda2\Scripts\conda-index.exe
conda-inspect: C:\Miniconda2\Scripts\conda-inspect.exe
conda-metapackage: C:\Miniconda2\Scripts\conda-metapackage.exe
conda-pipbuild: C:\Miniconda2\Scripts\conda-pipbuild.exe
conda-server: C:\Miniconda2\Scripts\conda-server.exe
conda-sign: C:\Miniconda2\Scripts\conda-sign.exe
conda-skeleton: C:\Miniconda2\Scripts\conda-skeleton.exe
user site dirs: C:\Users\MyUser\AppData\Roaming\Python\Python27
C:\Users\MyUser\AppData\Roaming\Python\Scripts
CIO_TEST: <not set>
CONDA_DEFAULT_ENV: C:\Miniconda2\envs\myenv
CONDA_ENVS_PATH: <not set>
PATH: C:\Miniconda2\Library\bin;C:\Miniconda2\envs\myenv;C:\Miniconda2\envs\myenv\Scripts;C:\Miniconda2\envs\myenv
\Library\bin;C:\Python279\;C:\Python279\Scripts;C:\Program Files\Dell\DW WLAN Card;C:\tools\ruby21\bin;C:\Program Files
(x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\
Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth
Software\syswow64;C:\Program Files\Mercurial;C:\HashiCorp\Vagrant\bin;C:\tools\python3;C:\Program Files\nodejs\;C:\WIND
OWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Skyp
e\Phone\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Eng
ine Components\IPT;C:\Program Files (x86)\Brackets\command;C:\Program Files\Git\cmd;C:\Program Files\TortoiseHg\;C:\Prog
ramData\chocolatey\bin;C:\Program Files\Mercurial\;C:\Users\MyUser\AppData\Roaming\npm;C:\Users\MyUser\AppData\L
ocal\atom\bin;C:\Program Files (x86)\Microsoft VS Code\bin;C:\tools\mysql\current\bin;C:\Users\MyUser\AppData\Local\
nylas\bin;C:\Program Files (x86)\Google\google_appengine\;C:\Users\MyUser\AppData\Local\Google\Cloud SDK\google-clou
d-sdk\bin;C:\Users\MyUser\AppData\Local\.meteor\;C:\Miniconda2\;C:\Miniconda2\Scripts
PYTHONHOME: <not set>
PYTHONPATH: <not set>
License directories:
C:\Miniconda2\licenses
C:\Users\MyUser\.continuum
C:\Users\MyUser\AppData\Roaming\Continuum
License files (license*.txt):
Package/feature end dates:
Am i missing something?