Use Conda environment in pycharm

open pycharm/preferences/project/Project Interpreter And check existing interpreter. Conda environments may already be listed there. If not exists, you can create a new conda environment with “Create Conda Env” button If you are looking for a specific conda environment you can use ‘add local’. When you click ‘add local’ you will input conda environment path + … Read more

How do I keep track of pip-installed packages in an Anaconda (Conda) environment?

conda-env now does this automatically (if pip was installed with conda). You can see how this works by using the export tool used for migrating an environment: conda env export -n <env-name> > environment.yml The file will list both conda packages and pip packages: name: stats channels: – javascript dependencies: – python=3.4 – bokeh=0.9.2 – … Read more

Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory \\METADATA

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

Cannot install Python 3.7 on osx-arm64

No native builds available Since Python 3.8 had been released for about a year when Apple Silicon hit the market, Python 3.7 builds for osx-arm64 were never part of the regular build matrix for Conda Forge. Workaround: Emulate Immediate alternatives for using 3.7 on Apple Silicon systems would be to emulate x86_64 with Rosetta or … Read more

Using multiple Python engines (32Bit/64bit and 2.7/3.5)

Make sure to set the right environmental variables (https://github.com/conda/conda/issues/1744) Create a new environment for 32bit Python 2.7: set CONDA_FORCE_32BIT=1 conda create -n py27_32 python=2.7 Activate it: set CONDA_FORCE_32BIT=1 activate py27_32 Deactivate it: deactivate py27_32 Create one for 64 bit Python 3.5: set CONDA_FORCE_32BIT= conda create -n py35_64 python=3.5 Activate it: set CONDA_FORCE_32BIT= activate py35_64 The … Read more