Posts

Showing posts with the label Conda

'Conda' Is Not Recognized As Internal Or External Command

Image
Answer : Although you were offered a good solution by others I think it is helpful to point out what is really happening. As per the Anaconda 4.4 changelog, https://docs.anaconda.com/anaconda/reference/release-notes/#what-s-new-in-anaconda-4-4: On Windows, the PATH environment variable is no longer changed by default, as this can cause trouble with other software. The recommended approach is to instead use Anaconda Navigator or the Anaconda Command Prompt (located in the Start Menu under “Anaconda”) when you wish to use Anaconda software. (Note: recent Win 10 does not assume you have privileges to install or update. If the command fails, right-click on the Anaconda Command Prompt, choose "More", chose "Run as administrator") This is a change from previous installations. It is suggested to use Navigator or the Anaconda Prompt although you can always add it to your PATH as well. During the install the box to add Anaconda to the PATH is now unchecked but you can ...

Anaconda - Graphviz - Can't Import After Installation

Answer : The graphviz conda package is no Python package. It simply puts the graphviz files into your virtual env's Library/ directory. Look e.g. for dot.exe in the Library/bin/ directory. To install the `graphviz` **Python package**, you can use `pip`: `conda install pip` and `pip install graphviz`. Always prefer conda packages if they are available over pip packages. Search for the package you need (`conda search pkgxy`) and then install it (`conda install pkgxy`). If it is not available, you can always build your own conda packages or you can try anaconda.org for user-built packages. Update : There exists now a python-graphviz package at Anaconda.org which contains the Python interface for the graphviz tool. Simply install it with conda install python-graphviz . (Thanks to wedran and g-kaklam for posting this solution and to endolith for notifying me). On conda: First install conda install graphviz Then the python-library for graphviz python-graphviz ...

Conda Command Is Not Recognized On Windows 10

Image
Answer : In Windows, you will have to set the path to the location where you installed Anaconda3 to. For me, I installed anaconda3 into C:\Anaconda3 . Therefore you need to add C:\Anaconda3 as well as C:\Anaconda3\Scripts\ to your path variable, e.g. set PATH=%PATH%;C:\Anaconda3;C:\Anaconda3\Scripts\ . You can do this via powershell (see above, https://msdn.microsoft.com/en-us/library/windows/desktop/bb776899(v=vs.85).aspx ), or hit the windows key → enter environment → choose from settings → edit environment variables for your account → select Path variable → Edit → New . To test it, open a new dos shell, and you should be able to use conda commands now. E.g., try conda --version . Things have been changed after conda 4.6 . Programs "Anaconda Prompt" and "Anaconda Powershell" expose the command conda for you automatically. Find them in your startup menu. If you don't wanna use the prompts above and try to make conda available in a normal cmd.exe a...

Conda Environment Has No Name Visible In Conda Env List - How Do I Activate It At The Shell?

Answer : Name-based reference of Conda environments only works for environments located in one of the directories listed in the envs_dirs configuration option (see conda config --describe envs_dirs ). By default this corresponds to the envs/ subdirectory in the Conda installation. If you create an env outside of one of these directories, then you cannot use a name to reference it. Option 1: Clone Into Directory One option to use conda activate B3 , is to recreate your B3 env in the default directory. You can use the --clone flag to accomplish this. conda create --clone path/to/the/nameless_env -n named_env Option 2: Add Parent Directory Alternatively, you can add the parent directory of the environment in question to the envs_dirs configuration option. conda config --append envs_dirs /path/to/the/parent_dir Option 3: Symbolic Link Another possibility is to create a symbolic link in one to the envs_dirs folders to the environment folder. It seems to work, but it is not a commo...

Cannot Install Latest Nodejs Using Conda On Mac

Answer : Currently, the latest version nodejs 14.x requires icu>=65 which is not yet globally available across conda-forge packages. Therefore it can be installed into a new environment with conda create -n new_env_name -c conda-forge nodejs , but most likely will raise package conflicts in existing environments. conda install node-js -c conda-forge installing the very old version 6.13.1 seems to be a solver problem. conda install nodejs -c conda-forge --repodata-fn=repodata.json will install a more current version: nodejs-13.x. Alternative workaround is to use mamba as a conda replacement. Credits go to Wolf Vollprecht. Here's my workaround: I installed nodejs for Mac from the .pkg file from the offical site and then every time I update packages in my conda environments, I force remove the nodejs version conda installs with: conda uninstall --force nodejs and then go about using the environment as if it had nodejs installed. That way when any other package need...

Conda Install Downgrade Python Version

Answer : If you want to set specific version, use it like this: WARNING: This command will overwrite the default python version system-wise conda install python=3.6 To create environment with a specific version, you can do: conda create -n $PYTHON36_ENV_NAME python=3.6 anaconda # set custom env name The anaconda at the end allows the env to use all anaconda packages For more information refere to Anaconda documentation You can make environments with other versions of Python using this command: conda create --name py33 python=3.3 source activate py33