-2
I got a problem, somebody’s been through it ?
I have a Python/Django project on a linux pc, and this project is in a repository on github.
Dei git clone in this repositorio on another windows pc, so far so good, now I try to install anything with Pip install and the venv activates it error.
The problem is with the virtual env of the repositorio project, because to test, in this windows pc I created a new venv, activated it and works normally Note the venv ( test) this was created on the windows pc itself for testing, works normal
this is the venv of the github project folder la, this venv was created on another pc
this is the mistake that gives
Can someone help me understand what the problem is? and how can I prevent it from happening, so that I can work on multiple machines in the same project.
In case when I go up a Django project on github, the ideal is just to go up the "Script" folder which is where the Django files will be?
– Anderson Santana Nunes
you need the files that Jango creates, when you run "Manage startproject" - and you need to see doc. in parallel on how to turn the Django project into a Python project - with setup.py or use "Poetry" and have "pyproject.toml". But nothing from virtualenv
– jsbueno
Putz, I always created a venv and in this same directory I created the github remote and climbed the entire venv to github, so around and a half had these problems. Thank you for answering my question even though it’s all messed up.
– Anderson Santana Nunes
no - are complementary concepts, practically "made" to work both, but without mixing: version control (git),ensures that the files that are unique for your project to work (the source code) are the same on any computer. Package management by environment (venv) ensures that in each installation, the appropriate requirements for project operation are installed for the specific architect and S.O. (and your project is "built" if there is this step), as automatically as possible .
– jsbueno