Anaconda

Use pip package inside Conda environment

笑着哭i 提交于 2021-01-28 07:08:40
问题 I am confused about how the packages installed through pip and conda work together. What I do know: pip and conda install different package format. What are the implications here except that pip can not install the conda package format? (which is fine for the purpose of this question since you can always use the appropriate command to install a package; I am interested in the part that follows) Say, package A is installed via pip ; package B installed via conda in an isolated conda

How to start Jupyter notebook on another drive in Mac OS Anaconda Navigator?

冷暖自知 提交于 2021-01-28 06:24:08
问题 I like the idea of using Anaconda Navigator to manage environments. On my Mac, the Anaconda Navigator is installed on the main drive. I would like to put working notebooks on another hard drive. However, Jupyter notebook cannot navigate to another hard drive. How do I configure the system so that I can work on the files on another hard drive and keep the Anaconda on the main drive? 回答1: After some research, I think the best way is to use Anaconda Navigator to configure packages, but start the

What is the difference between activating an anaconda environment and running its python executable directly?

坚强是说给别人听的谎言 提交于 2021-01-28 05:54:37
问题 I have setup multiple python environment using Anaconda. Usually, to run a script "manually", I would open a command line and then type: activate my-env python path/to/my/script.py Fine. Now I am trying to run a script automatically using a scheduler and I was wondering what the difference was between Writing a batch which activates the environment and the executes the script (like in the snippet above) Calling directly the python executable from the environment (within the envs/my-enjv/

Anaconda navigator not launching windows 10 (Spyder as well)

别等时光非礼了梦想. 提交于 2021-01-28 05:04:07
问题 I installed the anaconda 64 bit on windows 10. I can launch the prompt but when I try to open navigator thru the icon or thru prompt, I'm getting the error below. Can someone help me? Traceback (most recent call last): File "C:\ProgramData\Anaconda3\Scripts\anaconda-navigator-script.py", line 10, in <module> sys.exit(main()) File "C:\ProgramData\Anaconda3\lib\site-packages\anaconda_navigator\app\main.py", line 103, in main from anaconda_navigator.app.start import start_app File "C:

Import custom .py files in Jupyter Notebook for Anaconda3

末鹿安然 提交于 2021-01-28 03:03:57
问题 Where do I store custom .py files for Anaconda3 on Mac, so that I can import them as packages in Jupyter Notebook? 回答1: You can store them anywhere if you insert import os import sys sys.path.append(os.path.abspath("path/to/module.py")) from module import * 来源: https://stackoverflow.com/questions/50293427/import-custom-py-files-in-jupyter-notebook-for-anaconda3

Conda install some-package hangs with (Solving environment: failed)

青春壹個敷衍的年華 提交于 2021-01-28 01:50:15
问题 I have tried multiple ways but can't install packages (in my case, geopandas). I tried geopandas install guide, but get output that runs forever. I tried without creating an environment, after creating a new environment, using defaults channel and using conda-forge channel. None worked. $ conda create -n top $ conda activate top $ conda config --env --add channels conda-forge $ conda config --env --set channel_priority strict $ conda install python=3 geopandas Collecting package metadata

Unable to install packages in Anaconda virtual environment. 'Packages are not available from current channels'

旧巷老猫 提交于 2021-01-27 20:14:41
问题 I am trying to create a new Python environment in Anaconda. I am using Anaconda Powershell Prompt and created the environment using the conda create --name adwp1 python=3.5 -y; conda activate adwp1 conda install notebook=4.2.3 -y; and pip install notebook=4.2.3 I get the following error when I use conda install Collecting package metadata (current_repodata.json): done Solving environment: failed with initial frozen solve. Retrying with flexible solve. Collecting package metadata (repodata

Python Error - TypeError: item 1 in _argtypes_ passes a union by value, which is unsupported

百般思念 提交于 2021-01-27 15:07:58
问题 I think this is a not a programming specific bug, but is caused by some libraries. I am transferring my project to a new PC, which I have freshly setup with anaconda etc. using python 3.7.6. Executing the task on the old machine works fine, here I have also used anaconda with python 3.7 (not sure if it was 3.7.6 but I could check this, i just used while creating the environment python=3.7). When I now try to run my program, I receive: Exception in Tkinter callback Traceback (most recent call

How to have egg files from github install with pip not in current directory but in the conda env directory?

早过忘川 提交于 2021-01-27 08:03:24
问题 I am creating a python env using conda, pip and yml config file by using first: conda env create -f test.yml -n test_pip then conda env update -f test.yml -n test_pip with the following .yml file (for test only): channels: - defaults - conda-forge dependencies: - python=3.5 - numpy - scipy - scikit-learn - jupyter - ipykernel - requests - pandas - seaborn - click - openpyxl - matplotlib - pip: - watermark - "-e git+https://github.com/slundberg/shap#egg=shap" - pytest - sklearn - autopep8 It

How to have egg files from github install with pip not in current directory but in the conda env directory?

余生颓废 提交于 2021-01-27 08:01:56
问题 I am creating a python env using conda, pip and yml config file by using first: conda env create -f test.yml -n test_pip then conda env update -f test.yml -n test_pip with the following .yml file (for test only): channels: - defaults - conda-forge dependencies: - python=3.5 - numpy - scipy - scikit-learn - jupyter - ipykernel - requests - pandas - seaborn - click - openpyxl - matplotlib - pip: - watermark - "-e git+https://github.com/slundberg/shap#egg=shap" - pytest - sklearn - autopep8 It