conda

Install conda package from Google Datalab

断了今生、忘了曾经 提交于 2019-12-11 15:20:53
问题 I'm looking to use the ospc taxcalc package in a Google Datalab notebook. This package must be installed via conda. Datalab doesn't have conda by default, so this method (from https://stackoverflow.com/a/33176085/1840471) fails: %%bash conda install -c ospc taxcalc Installing via pip also doesn't work: %%bash pip install conda conda install -c ospc taxcalc ERROR: The install method you used for conda--probably either pip install conda or easy_install conda --is not compatible with using conda

Module ggplot installed but cannot be imported

大兔子大兔子 提交于 2019-12-11 14:26:42
问题 I installed ggplot for python 2.7 in a Win64 env using conda via the command line: $conda install -c https://conda.binstar.org/bokeh ggplot since: $pip install -U ggplot could not locate the package (see pevious stackQ). Checking if module is installed: >python -c "import ggplot" Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named ggplot Any idea how to resolve this? Update notes : debug tests $pip freeze >(finds package ggplot) $import imp

在Anaconda虚拟环境中运行jupyter notebook

被刻印的时光 ゝ 提交于 2019-12-11 14:15:16
把虚拟环境想象成电脑,他自己也得装jupyter notebook呀 conda install jupyter notebook 然后安装一个conda的包,这样就可以在conda上面运行ipynb文件 conda install ipykernel 然后在虚拟环境中输入指令,即可进入 jupyter notebook 来源: CSDN 作者: Dear Slim. 链接: https://blog.csdn.net/weixin_43525427/article/details/103490527

Jupyter notebook, ImportError: No module named pylab

爷,独闯天下 提交于 2019-12-11 13:16:52
问题 I am a ubuntu user, and I have install python 2.7.9 on my computer. In order to use jupyter notebook, I down load anaconda2. After my installation, I find after entering the command 'jupyter notebook', my browser will open jupyter notebook, but I can't find new python2, so I went to the https://ipython.readthedocs.org/en/latest/install/kernel_install.html Use the following commands: conda create -n ipykernel_py2 python=2 ipykernel source activate ipykernel_py2 python -m ipykernel install -

Install a newer Python when there are installed packages linked against the old one

[亡魂溺海] 提交于 2019-12-11 13:02:02
问题 (Please bear with me for the long description, it has been quite a troubleshooting journey.) My ultimate goal is to get python package graph_tool working on my system and also on ipynb if possible. I have already brew install graph-tool , as indicated here, but that's still insufficient. So I follow conda instructions here, and try to fulfill all requirements including having cgal and python3.6 . I had anaconda with python2.7 and python3.5 originally, but since python3.6 is necessary, I

Conda Python environment missing DLL file on Windows

♀尐吖头ヾ 提交于 2019-12-11 10:35:21
问题 I created a new Conda environment on Windows: conda create --name recco networkx I then activated it with source activate . So far so good. Running conda list verifies that I have installed: decorator 4.0.4 msvc_runtime 1.0.1 networkx 1.10 python 3.5.1 Ok, let's run python --version to make sure that everything is as it should be: What does that even mean? When I deactivate and run python --version everything runs as expected and I'm handed back Python 3.4.1 . 回答1: This issue is because

Python pip doesn't build dependencies during installation

风流意气都作罢 提交于 2019-12-11 09:42:46
问题 Pip doesn't seem to build dependencies from source on my Ubuntu server, while it always does that on my OS X machine. For example, when I try to install package qiime in a conda or virtualenv (I tried both) environment it takes seconds to install a hell lot of things that take loads of time to compile on my Mac. (qiime)user@server:~$ pip install qiime Collecting qiime Collecting qiime-default-reference<0.2.0,>=0.1.2 (from qiime) Collecting burrito<1.0.0,>=0.9.1 (from qiime) Collecting pandas>

How to install local library with pip to a conda environment using environtment.yml file?

我怕爱的太早我们不能终老 提交于 2019-12-11 08:35:05
问题 I want to set up an environment.myl file for a project's conda environment. I have a local package that I would normally use pip install -e . so I can work on the code locally. Is there a way to use pip to install this package with the env file? I tried this based on something I found using install options with github links, but doesn't work. name: foo channels: - defaults dependencies: - python=3.7 - pip - pip: - /Users/me/projects/package/ --install-option="-e" 回答1: As far as I can tell

How do I “repeatedly uninstall numpy” safely? Why was this necessary?

帅比萌擦擦* 提交于 2019-12-11 08:17:50
问题 Following directions in http://sfepy.org/doc-devel/installation.html#installing-sfepy I installed SfePy to my Python 2.7 anaconda using conda install -c conda-forge sfepy Immediately after that, I can no longer import numpy >>> import numpy as np Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/david/anaconda2/lib/python2.7/site-packages/numpy/__init__.py", line 142, in <module> from . import core File "/Users/david/anaconda2/lib/python2.7/site-packages

Jupyter Notebook's terminal command not using correct conda environment

旧城冷巷雨未停 提交于 2019-12-11 06:32:41
问题 I have 2 conda environments installed: - env1 : base environment where jupyter-notebook is installed and started from - env2 : project environment with ipykernel installed I manually added kernelspecs for the 2 environments following this guide. Everything works fine. sys.executable in 2 kernels show separate, correct paths. But for terminal commands (i.e. !which python ), no matter which kernel I'm running in the environment defaults to env1 . Is there any way to have the notebook