environment

Problem installing matplotlib using conda and virtual environment. ModuleNotFoundError

Problem installing matplotlib using conda and virtual environment. ModuleNotFoundError Question: I have tried to install matplotlib in my environment "cs323V2"with the following commands: (cs323V2) conda install matplotlib Collecting package metadata (current_repodata.json): done Solving environment: done # All requested packages already installed. Retrieving notices: …working… done (cs323V2) python Python 2.7.5 (default, Nov 16 2020, 22:23:17) [GCC …

Total answers: 1

Working with Python version 3.9.13 in conda and VS Code

Working with Python version 3.9.13 in conda and VS Code Question: I am trying to create a new conda environment in VSCode. I am currently running Python version 3.9.13. Whenever I run the command conda create -n <environment name> python=3.9.13 anaconda I get the below message: Collecting package metadata (current_repodata.json): failed CondaHTTPError: HTTP 000 CONNECTION …

Total answers: 1

Activating venv and conda environment at the same time

Activating venv and conda environment at the same time Question: I am a beginner and was "playing around" with environments a bit. I came across a situation where it seemed that I had two environments activated: I create a directory, create an environment with venv, activate it and then also conda activate a conda environment …

Total answers: 2

How to activate anaconda environments properly after installing visual studio 2019

How to activate anaconda environments properly after installing visual studio 2019 Question: After installing Visual Studio 2019, I have problems with my anaconda. When I create a new environemnt in my anaconda, after hours I face the problem when I try to activate the environment and after that when I open any jupyter notebook, the …

Total answers: 2

VSCode issue with Python versions and environments from Jupyter Notebooks

VSCode issue with Python versions and environments from Jupyter Notebooks Question: Issue: I am having issues with the environment and version of Python not matching the settings in VSCode, and causing issues with the packages I am trying to use in Jupyter notebooks. I am using a Windows 10 machine with Python 3.9.1 installed (including …

Total answers: 2

How to activate a Conda environment within a Python script?

How to activate a Conda environment within a Python script? Question: I have a script using os.system(cmd) to run a pipe. I need the pipe to run in a specific Conda environment, so I tried to do something like this: cmd = ‘conda activate base && ‘ + cmd os.system(cmd) However, I get: CommandNotFoundError: Your …

Total answers: 1

Visual Studio Code terminal doesn't activate Conda environment

Visual Studio Code terminal doesn't activate Conda environment Question: I read this Stack Overflow post on a similar issue, but the suggestions there don’t seem to be working. I installed Visual Studio Code on my Windows machine and added the Python extension. Then I changed the Python path for my project to C:Usersusername.condaenvstompython.exe. The .vscode/settings.json …

Total answers: 13

python conda: created a environment, but it is not using conda's python

python conda: created a environment, but it is not using conda's python Question: I have been using anaconda for a while, and its Python executable is located at /Users/ufo/opt/anaconda3/bin/python. I have tried to create an environment with conda, and the new environment would use copy this Python to environment’s bin. However, with current Anaconda versation, …

Total answers: 3

How to specify version ranges in Conda environment.yml

How to specify version ranges in Conda environment.yml Question: Is it possible to specify version ranges in an environment.yml file for Conda packages? The official documentation mentions a few examples that rely on the asterisks (*) and I am wondering if that is the only feature or whether Conda supports other more sophisticated version ranges …

Total answers: 2