Questions tagged [virtualenv]
virtualenv is a tool that creates sandboxed Python environments.
virtualenv
7,532
questions
0
votes
0
answers
12
views
Using pymongo installed via virtualenv and Ansible returns an error
Since it's good practice to install pip modules in virtual environment, I have the following task in place:
- name: Install python packages
ansible.builtin.pip:
name:
- pymongo
...
0
votes
1
answer
13
views
Difference between an ipynb kernal (Jupyter lab / Jupyter notebook) and a python virtual environment ( created through venv)
I wanted to ask about the difference between a Jupyter notebook kernel and a Python virtual environment created through venv. From what I understand:
Jupyter notebook kernels are used for notebooks, ...
0
votes
0
answers
7
views
Virtual Environment Packages Affecting Global Environment: How to Resolve the Issue
I recently bought a MacBook Pro with an M3 chip and started my first Python project. I created a virtual environment and installed some packages there, which allowed my code to run correctly. However, ...
-2
votes
0
answers
35
views
Bad git executable: Unable to create new langchain app <langchain app new my-app>
Unable to create new langchain app in VS Code Terminal (powershell)
ENV: venv
OS: Windows
Python: 3.11.9
First, I installed
pip install -U langchain-cli and then next step was to create a langchain ...
0
votes
1
answer
47
views
ImportError: cannot import name 'Ollama' from 'langchain.llms'
Trying to test Ollama customised promt in the vitural environment[.venv (Python 3.11.9] locally in VS Code .ipynb file. However, getting the following error message:
Error:
ImportError: cannot import ...
1
vote
0
answers
38
views
How do I debug intermittent import issues when using python virtualenv?
I created a virtual environment from Python 3.10.11 using virtualenv for my project, and every once in a while as I am programming and running test scripts, the scripts will get 'stuck'. When this ...
-2
votes
2
answers
48
views
VSCodium Fails to Detect Virtual Environment Interpreter
I activated the virtual environment of my project via the terminal and then opened the project path in VSCodium. However, VSCodium fails to find the interpreter of the virtual environment when I try ...
-1
votes
1
answer
32
views
Library version conflict python
I have two libraries, and both of them use typing-extensions, but they use different versions of typing-extensions. This conflict is causing an issue as both libraries are needed in one project. How ...
-1
votes
1
answer
52
views
python ModuleNotFoundError on conda environment
I am trying to use the Open Motion Planning Library in a conda environment.
I think that this issue is caused by the conda virtual environment not playing nicely with my setup somehow, but I have no ...
0
votes
1
answer
52
views
When I run Python code using virtual environment from terminal, it fails vs. running from within IDE
From within Visual Studio Code [1.91.1] on my Raspberry Pi 4 Model B, running Debian 12, the code runs successfully when I start with Main.py using "Run and Debug". I have installed all of ...
1
vote
2
answers
51
views
When using Google Colab, Python package 'datasets' just disappeared from virtualenv directory 'site-packages'
I'm using Google Colab and trying make a virtual environment to work.
My code is:
from google.colab import drive
drive.mount('/content/drive')
!pip install virtualenv
myenv_dir = '/content/...
0
votes
0
answers
24
views
MongoDB Atlas CLI: atlas command not found
I am trying to use MonngoDB Atlas CLI. I have installed Atlas in a Ubuntu virtual environment following the official documentation. Apparently everything works. However, if I close and reopen the ...
1
vote
0
answers
28
views
Python Pycharm virtualenv cant add new virtualenv
I made some tests with multiple virtualenv Environment in Pycharm Professional Version 2024.1.1.
Now im stuck with the Problem, that I cant make a new Virtualenv anymore, because all i get is this ...
0
votes
1
answer
66
views
Error in PyCharm: Package requirement 'Django==5.0.7' is not satisfied
I'm trying to set up a Django project in PyCharm, but I keep encountering the following error:
Package requirement 'Django==5.0.7' is not satisfied
I have already tried the following steps:
Ensured ...
2
votes
1
answer
65
views
Should I put Django venv directory in .gitignore?
In my book Python Crash Course 2nd edition it is recommended to put ll_env (venv directory) in .gitignore.
It says, "We tell Git to ignore the entire ll_env directory, because we can re-create
it ...