Python – Activate conda env through shell script
I use ‘source command’ to run the shell script, it works: source shell_script.sh
I use ‘source command’ to run the shell script, it works: source shell_script.sh
This is a tricky part of ipython / Jupyter. The set of kernels available are independent of what your virtualenv is when you start jupyter Notebook. The trick is setting up the the ipykernel package in the environment you want to identify itself uniquely to jupyter. From docs on multiple ipykernels, source activate ENVNAME pip … Read more
You can add –debug option to the conda command and see the output from console(or terminal). For example, type conda update –debug numpy. From the output, we can see that the client requests repodata.json from channel list and do some computation locally in the Solving Environment Step.
On more recent versions of conda (4.6+), I have noticed that the following works: eval “$(conda shell.bash hook)” conda activate <env-name>
TL;DR: Problem: Long install path Solution 1: Install the desired python package (in my case tensorflow) in the folder which has a shorter path (for example C:/my_py_packages/some_package) Solution 2: Set the registry value HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem@LongPathsEnabled to 1 as mentioned here. Original answer: I got here by having this kind of error when I tried installing tensorflow … Read more
My original answer got flagged as duplicate because I answered a similar question with the same answer, I wasn’t aware that this is not allowed. I have marked my other response as a duplicate. Hopefully, this stays up! I almost spent two days running in circles trying all the solutions I could find on the … Read more
I know it’s late, but I thought it would be nice to clarify things: PyCharm and Conda and pip work well together. The short answer Just manage Conda from the command line. PyCharm will automatically notice changes once they happen, just like it does with pip. The long answer Create a new Conda environment: conda … Read more
Use the files $CONDA_PREFIX/etc/conda/activate.d and $CONDA_PREFIX/etc/conda/deactivate.d, where $CONDA_PREFIX is the path to the environment. See the section on managing environments in the official documentation for reference.
I have experience with a Conda + Poetry setup, and it’s been working fine. The great majority of my dependencies are specified in pyproject.toml, but when there’s something that’s unavailable in PyPI, or installing it with Conda is easier, I add it to environment.yml. Moreover, Conda is used as a virtual environment manager, which works … Read more
The following steps may work to resolve the issue. conda config –remove channels conda-forge conda config –add channels conda-forge if it doesn’t work then try this conda update conda if nothing works try seeing this github solution, it worked for many.