Anaconda

Jupyter: No module named 'imblearn" after installation

帅比萌擦擦* 提交于 2020-01-13 08:59:07
问题 I installed "imbalanced-learn" (version 0.3.1) on ANACONDA Navigator. When I ran an example from the imbalanced-learn website using Jupyter (Python 3), I got an message regarding "ModuleNotFoundError". No module named 'imblearn". from imblearn.datasets import make_imbalance from imblearn.under_sampling import NearMiss from imblearn.pipeline import make_pipeline from imblearn.metrics import classification_report_imbalanced How could I resolve this? 回答1: Problems importing imblearn python

Cloning Conda root environment does not clone conda and condo-build

一个人想着一个人 提交于 2020-01-13 08:32:09
问题 I'm using conda 4.2.9 on OS X El Capitan 10.11.4. I cloned the root env with the command: conda create -n rootclone --clone root and it gave the following message: The following packages cannot be cloned out of the root environment: - conda-4.2.9-py35_0 - conda-build-2.0.2-py35_0 Will this be a problem? 回答1: Conda only works from the root environment. So cloning the conda part is not possible. Even when you have a different environment activated, the command conda will be the one from root.

CondaValueError: Value error: prefix already exists:

▼魔方 西西 提交于 2020-01-13 03:13:06
问题 Reference: https://uoa-eresearch.github.io/eresearch-cookbook/recipe/2014/11/20/conda/ I've run the following commands to install conda and create a virtual environment. Continue reading after code block for my question. C:\Windows\System32>conda -V conda 4.1.11 C:\Windows\System32>conda update conda Fetching package metadata ......... Solving package specifications: .......... Package plan for installation in environment C:\Program Files\Miniconda2: The following packages will be downloaded:

Python is very slow to start on Windows 7

醉酒当歌 提交于 2020-01-12 12:14:05
问题 Python takes 17 times longer to load on my Windows 7 machine than Ubuntu 14.04 running on a VM (inside Windows on the same hardware). Anaconda3 distribution is used on Windows and Ubuntu default python3.4. From a Bash prompt (Git bash on Windows): $ time python3 -c "pass" returns in 0.614s on Windows and 0.036s on Linux When packages are loaded the situation gets worse: $ time python3 -c "import matplotlib" returns in 6.01s on Windows and 0.189s on Linux Spyder takes a whopping 51s to load on

How to make pyinstaller not use anaconda and build a small-size exe file

孤人 提交于 2020-01-11 14:41:21
问题 I have been trying to build .exe file using pyinstaller in windows 10. It worked, but the size of the exe file is ~212 MB, even by using a venv (as in here). I thought it might be because I am using python by anaconda! Then I installed a separate version of Python so not to use anaconda! But it did not work (still large file). Then I uninstalled anaconda to test it. Pyinstaller is still trying to access Python in 'C:\Program Files\anaconda3\python.exe' ( this error : No Python at 'C:\Program

How to solve this problem in python jupyter notebook using deep learning

梦想与她 提交于 2020-01-11 14:33:34
问题 I am trying to run. But this error occurs TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType' Here is code data = np.asarray(data, dtype="float") / 255.0 labels = np.array(labels) print("Success") # partition the data into training and testing splits using 75% of # the data for training and the remaining 25% for testing (trainX, testX, trainY, testY) = train_test_split(data, labels, test_size=0.25, random_state=42) #this is run successfully but when

What is the advantage of Pip over Anaconda?

◇◆丶佛笑我妖孽 提交于 2020-01-11 08:46:32
问题 So, I have seen What is the difference between pip and conda?. However, all of the answers there appear to be from Anaconda supporters. So, that made me wonder: why is pip still the standard? why hasn't everyone just moved to anaconda? I understand that anaconda only works with its own python, but is that the only disadvantage? 回答1: Based on my limited experience, I would guess that the main advantage of pip over conda is the ability to still install packages that are not available from conda

Install tensorflow on Windows with anaconda

我与影子孤独终老i 提交于 2020-01-11 08:14:34
问题 I am trying to install Tensorflow on my Windows PC. Since I have already install and used Anaconda on Python (3.5), I have followed the instructions https://www.tensorflow.org/versions/r0.8/get_started/os_setup.html#anaconda-environment-installation . After the creation of the conda environment called tensorflow, I have tested my installation with: $ python Import tensorflow as tf But I got the error : ImportError: no module named 'tensorflow' Does anyone know what I missed? Thank you very

Install tensorflow on Windows with anaconda

谁说胖子不能爱 提交于 2020-01-11 08:14:06
问题 I am trying to install Tensorflow on my Windows PC. Since I have already install and used Anaconda on Python (3.5), I have followed the instructions https://www.tensorflow.org/versions/r0.8/get_started/os_setup.html#anaconda-environment-installation . After the creation of the conda environment called tensorflow, I have tested my installation with: $ python Import tensorflow as tf But I got the error : ImportError: no module named 'tensorflow' Does anyone know what I missed? Thank you very

安装anaconda

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-11 02:11:08
Anaconda Anaconda是将Python和许多常用的package(Python开源包)打包直接来使用的Python发行版本,支持Windows、Linux和macOS系统,并有一个conda(开源包packages和虚拟环境environment的管理系统)强大的执行工具。   (1)提供了包管理功能, Windows 平台安装第三方包经常失败的场景得以解决。 (2)提供环境管理功能,解决了多版本Python并存、切换的问题。 下载安装   可以从官网 https://www.anaconda.com/download/ 下载Anaconda的安装程序,在该页面选择你电脑所对应的系统(Windows、macOS or Linux)以及操作系统位数(64位 or 32位)。 2. 安装   下载后的文件为.exe文件,双击该文件进入安装界面。   1、 依次点击Next –> I agree –> Next进入选择安装目录界面。   2、 在选择安装目录界面,默认安装路径为C盘。(安装路径根据自己的实际情况安排,不建议安装在C盘)   3、 然后点击Next进入到Advanced Options界面。其中有两个选项框,建议将第一个选项框(Add Anaconda to my PATH environment variable,默认为不选)选上。然后点击Install