conda

Conda environment using incorrect module because of order os sys.path

Conda environment using incorrect module because of order os sys.path Question: I am using conda version 4.14.0. When I activate a conda environment I can see that the current numpy module is 1.22.3 conda list | grep -i numpy numpy 1.22.3 py39hc58783e_2 conda-forge When I run python in the conda environment and load numpy it …

Total answers: 1

Why does pip not install a github repository whitin conda environment?

Why does pip not install a github repository whitin conda environment? Question: I combined following commands on ubuntu: conda create -n ml python=3.9 conda activate ml conda install jupyter pandas graphviz python-graphviz pip install git+https://github.com/MaxHalford/vose pip install git+https://github.com/MaxHalford/hedgehog python -m ipykernel install –user –name=ml jupyter notebook But when I try to execute python code on …

Total answers: 1

Why is pip not letting me install torch==1.9.1+cu111 in a new conda env when I have another conda env that has exactly that version?

Why is pip not letting me install torch==1.9.1+cu111 in a new conda env when I have another conda env that has exactly that version? Question: When I run the pip install in the new conda env: (base) brando9~ $ pip install torch==1.9.1+cu111 torchvision==0.10.1+cu111 torchaudio==0.9.1 -f https://download.pytorch.org/whl/torch_stable.html Looking in links: https://download.pytorch.org/whl/torch_stable.html ERROR: Could not find a …

Total answers: 2

Unable to install fastquant in new virtualenv conda

Unable to install fastquant in new virtualenv conda Question: In base environment I have already installed fastquant package but after creating and activating new conda environment I am not able to install the fastquant package. I already have pandas 1.5.2 but when I install fastquant it is trying to install pandas 1.1.5 as it is …

Total answers: 1

Python shebang with conda

Python shebang with conda Question: Following best practice I have started an executable Python script with a shebang specific to Python 3: #!/usr/bin/env python3 import spotipy # …some fancy code One chmod +x later, I’m executing this script as ./quick_example.py but alas the executable found (running locally on my Mac) is not the Python executable …

Total answers: 2

How to fix a Mac base conda environment when sqlite3 is broken

How to fix a Mac base conda environment when sqlite3 is broken Question: I recently updated the Python version of my base conda environment from 3.8 to 3.9, using mamba update python=3.9, but I can no longer run IPython, because the sqlite3 package appears to be broken. python Python 3.9.15 | packaged by conda-forge | …

Total answers: 2

PackageNotFoundError even though required channel added to anaconda config?

PackageNotFoundError even though required channel added to anaconda config? Question: I am working with Ubuntu in WSL and tried to install the required packages for a repo with: $ conda install –file requirements.txt I got a PackageNotFoundError for a bunch of different packages. I search on anaconda.org for the required channels and added them. But …

Total answers: 1

Using VisualStudio+ Python — how to handle "overriding stdlib module" Pylance(reportShadowedImports) warning?

Using VisualStudio+ Python — how to handle "overriding stdlib module" Pylance(reportShadowedImports) warning? Question: When running ipynbs in VS Code, I’ve started noticing Pylance warnings on standard library imports. I am using a conda virtual environment, and I believe the warning is related to that. An example using the glob library reads: "envLibglob.py" is overriding the …

Total answers: 2

Snakemake doesn't activate conda environment correctly

Snakemake doesn't activate conda environment correctly Question: I have a Python module modulename installed in a conda environment called myenvname. My snakemake file consists of one simple rule: rule checker2: output: "tata.txt" conda: "myenvname" script: "scripts/test2.py" The contents of the test2.py are the following: import modulename with open("tata.txt","w") as _f: _f.write(modulename.__version__) When I run the …

Total answers: 1

Is a cloned Conda environment Similar to a Python virtual environment

Is a cloned Conda environment Similar to a Python virtual environment Question: Is a cloned conda environment similar to a Python Virtual Environment? conda create –clone arcgispro-py3 –name arcgispro-py3_clone Or are there any benefits to create a Visual Environment for this cloned environment? Asked By: Behseini || Source Answers: I think I understand what you’re …

Total answers: 1