Questions tagged [pyvenv]

pyvenv is a tool that allows users to create a python virtual environment to isolate project dependencies. Similar to : virtualenv

50 questions
1
vote
1 answer

Permission denied on python3 command

I am new to running the python backend api and I was encountering permission denied on this command:
Kev
  • 25
  • 5
1
vote
2 answers

Force venv to put python's symlink in identical locations on macOS and Windows

I am developing a program inside a Python virtual environment. Running the command python -m venv .venv on Windows, puts the python symlink in .venv\Scripts\ while python3 -m venv .venv on macOS puts the symlinks on .venv/bin/. I'm using Visual…
Foad S. Farimani
  • 12,396
  • 15
  • 78
  • 193
1
vote
1 answer

Problem deploying shiny app in R. Using a virtual env with reticulate to run python code in app. Error -- virtual environment: permission denied

I am creating an app in Shiny using R. I have a model in python that I am using in the app so I use the reticulate package to run it and a virtual environment in the same folder as the app to access python3. It works great locally, but once I deploy…
esulli
  • 41
  • 10
1
vote
2 answers

Running Python3 on a shared PC with Python2? Installation and running conflicts, reverts to Py2 libraries

So I've written a bunch of Python3 scripts that I want to run on a shared work computer. This computer has python2.7 installed on it, and many scheduled 2.7 scripts, and I have to make sure those continue untouched. So I thought a kind of portable…
Declan
  • 574
  • 4
  • 15
1
vote
2 answers

How to get back to python virtual environment in mac command line

I am having a bit of difficulty reinitiating my virtual environment on my preprod server on command line. I think when I quit out of my preprod server the other day, I also quit out of my virtual environment, because now it doesn't say (env) in…
SAS
  • 77
  • 1
  • 2
  • 6
0
votes
0 answers

ansible, azure-cli, ansible_azcollection_version compatable issues

using the ansible=3.3.0, azure-cli=2.15.1, ansible_azcollection_version=1.13.0 creating the docker image and using the ansible-venv-v1.0 with the python major version as 3.7 while running the project relared tasks getting the below error like as…
Shyam
  • 13
  • 5
0
votes
0 answers

source activate does not activate python venv environment

I am using python 3.10, and create a virtual environment using python -m venv .venv seems bin folder generated in proper way, however when I use source .venv/bin/activate …
bybot
  • 1
  • 1
0
votes
0 answers

Tox command failing with error "No pyproject.toml or setup.py file"

Tox command is failing using tox.ini $ tox ERROR: No pyproject.toml or setup.py file found. The expected locations are: /home/test/sample/pyproject.toml or /home/test/sample/setup.py You can 1. Create one: …
Lava Sangeetham
  • 2,943
  • 4
  • 38
  • 54
0
votes
0 answers

How do I make pip find header files in a specific folder when running in a venv?

I installed Python 3.10.11 from source on my Linux (OpenSuSE Leap 15.4 on AMD64) machine and defined a venv so that I can build an app, which requires a fresh (>= 3.8) Python version. Unfortunately, when getting wxWidgets for Python via pip, I…
Neppomuk
  • 1,102
  • 1
  • 11
  • 24
0
votes
0 answers

How to use a specific python version at venv creation?

I'd like to be able to specify in a file the python version to use for my project in order to retrieve it automatically at venv creation. I manage to specify it manually but wonder if I could retrieve it from a conf file in the repo using that kind…
SID__
  • 1
  • 2
0
votes
0 answers

Activating python virtual environment and error - Set-ExecutionPolicy : Cannot set execution policy

I want to activate my already created Python virtual environment.I used "./activate" command in the /venv/Scripts . But, then I got the following error. .\activate: File…
0
votes
0 answers

Python virtual environment and pyvenv.cfg file

I have questions regarding how virtual environment work. here is what I did: I created a python virtual environment on the network drive at \networkdrive_path\python_venv using computer A. on computer B, in the windows command window, I activate…
Z.Gary
  • 13
  • 1
  • 4
0
votes
0 answers

How a .venv (virtual environment) could be deleted?

simply, I used py -m venv example-env, and created a venv. Now I want to delete it whether insure there will be no side effect on my libraries. If I delete the (.example-venv) subfolders, is it ok? I mean, is it a standard action?!
0
votes
0 answers

Why portable Python is not working with relative path?

I want to make a portable python, so i use relative path in pyvenv.cfg like this: home = ..\python310 include-system-site-packages = false version = 3.10.9 But i keep getting this error (everything else is okay i think): No Python at…
0
votes
0 answers

Creating or Using a VENV File/ Portability

Venv File I have a project that utilizes YoloV5, OpenCV, as well as many other python libraries. After finally finishing work on the project, I wanted to share it with my teammates. However, I was unable to get my code to run anywhere other than my…