Skip to content

Tag: conda

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

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. Since I had another Python 3.9 environment that is still functional, I tried copying over the envs/py39/lib/sqlite3.36.0 and envs/py39/lib/python3.9/sqlite3 directories, as well as envs/py39/lib/python3.9/lib-dynload/ because I

Snakemake doesn’t activate conda environment correctly

I have a Python module modulename installed in a conda environment called myenvname. My snakemake file consists of one simple rule: The contents of the are the following: When I run the above snakemake file with the command snakemake -j 1 –use-conda –conda-frontend conda I get ModuleNotFoundError, which would imply that there is no modulename in my specified environment.

Pipreqs not including all packages?

I currently have a conda environment tf_gpu and I pip installed pipreqs in it to auto generate requirements.txt Now, in my project folder, I have with the imports : Also, predict uses pandas, scipy, numpy, pickle So, but the requirements.txt generated by pipreqs using pipreqs ./ inside the project folder only gets me the following: Why is python-dotenv not

Postgredb in conda environment or keep standalone

I am looking for some guidance. I have Anaconda installed to manage my python packages and environments. I see that you can install postgres in the package manager. Am I best to install postgres in the conda environment or install standalone. I am on Windows. I see that if I install postgres separately I get pgadmin graphical interface. This could

OSError: [Errno 22] Invalid argument: – Changing backslash to forward slash not helping! (Windows)

I am working with streamlit to create a tool that takes user input (csv file name) and cleans/produces output as a dataframe. I continuously get OSError: [Errno 22] Invalid argument: ‘M:/Desktop/AutomationProject/’ I am aware of all the past solves of this error, however they all say change backslash to forward slash on windows and this is a quick fix, however

how to install multiple packages in one line using conda?

I need to install below multiple packages using conda. I am not sure what is conda-forge? some uses conda-forge, some doesn’t use it. Is it possible to install them in one line without installing them one by one? Thanks Answer Why some packages have to be installed through conda forge: Conda official repository only feature a few verified packages. A