I just transitioned from pipenv to poetry and I’m having trouble importing a package from a local package I’m developing in a few of my scripts. To make this more concrete, my project looks something like: Within myscript.py, I import mypackage. But when I poetry run bin/myscript.py I get a ModuleNotFoundError because the PYTHONPATH does not include the root of
Tag: virtualenv
Can I just create files and “work as normal” under a python folder with a virtual environment on it via vscode?
I wasn’t sure exactly how to ask my question in one concise sentence for the title so please give me the chance to be a bit more specific here. So I’ve recently learned and have been told that working in virtual environments, or getting in the habit of doing so, is best for python (and I assume for many other
Clone a python virtualenv to an offline server
Hi I want to clone a python virtualenv to a server that’s not connected to the internet, I searched different forums but didn’t find a clear answer. Here are the methods I found and the problems I have with each : Methode 1 : (safest but most time consuming) Save all the libraries via a pip freeze > requierments.txt then
Writing One Shell script to first enter nix shell, then enter the python virtual environment
I want to schedule a job from wsl. The job will need to be run in the nix-shell and then in the python virtual environment under Nix-shell. I try to do this by writing a shell script, run ./enter.sh. However, it doesn’t enter the after I run ./enter.sh. I need to first run the first line, then run the second
Python program works only from pycharm, not somewhere else
The script works fine when I run it in pycharm, but if I run it from somewhere else it just doesn’t work. When I run it via cmd it gives me this error: The Python version in both the terminal and in pycharm are the same. There is a virtual environment set up in pycharm. Answer Try pip installing the
PyCharm error: Cannot run program, error=2, No such file or directory
I am getting the following error message when attempting to execute Python code in PyCharm: Cannot run program “/Users/x/.virtualenvs/untitled/bin/python” (in directory “/Users/x/PycharmProjects/untitled”): error=2, No such file or directory I made sure everything was updated and restarted my computer, but I still get the same error. I have no idea what the problem is. Edit I just opened my terminal and
How to downgrade python version from 3.8 to 3.7 (mac)
I’m using Python & okta-aws tools and in order to fetch correct credentials on aws I need to run okta-aws init. But got an error message of Could not read roles from Okta and the system prompted that”Your Pipfile requires python_version 3.7, but you are using 3.8.3 (/usr/local/Cellar/o/1.1.4/l/.venv/bin/python). I’ve tried to search all the Pipfiles on the mac and it
Creating Virtual environment using python 3.8 when python 2.7 is present
I am trying to create a virtual environment using mkvirtualenv with python 3 in Windows but the environment is created with python 2.7.My pip version is also from python 2.7 which i have avoided using When i do environment is created with python 2.7 Please help me with a solution Thanks in advance:) Answer If you would like to create
How to install python 3.7 32Bit with VirtualEnv on windows 10
How to install a version of the python environment 3.7 32Bit with VirtualEnv on windows 10? I need to use ctypes to load a DLL in 32Bits OSError: [WinError 193]% 1 is not a valid Win32 application I believe it is the architecture of the python version on my machine to have installed python 64Bit Could anyone help? I thank
Virtual Environment calling global installation of Python instead of venv-specifc version
I’m having an issue where for some reason the virtual environments that I’m creating are accessing my system-wide installations of Python and pip when they shouldn’t be. Here’s my fairly simple workflow just make sure I’m not missing anything obvious (Windows 10, Python 3.8.2): My path is now prepended by (venv), as you’d expect. However, lists all of the system-wide