A
A
alex-bul2020-07-21 18:48:34
Python
alex-bul, 2020-07-21 18:48:34

How to export a pycharm project?

Hello!
I develop various scripts in python, later I transfer to the VDS server on Windows. I just copy the files from my PC to the server and then download the necessary libraries. But often there are various conflicts and I spend a lot of time solving problems.

Question: is it possible to somehow export the virtual environment of the paycharm project along with the files in order to run it on another device?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
_
_, 2020-07-21
@KOT10

Use docker.
You can copy the folder with the virtual environment (.venv) and try to move it, but everything can fall apart in the same way as when installing dependencies.
Plus, you need to look at exactly what problems you have when installing dependencies on the server, if they are related to a lack of libs in the system, as is often the case - use docker)

D
Denis Melnikov, 2020-07-21
@Mi11er

1) pip freeze > req.txt
2) pip install -r req.txt The
virtual environment is not migrated.
In general, the git will help you ... it's easier with it (than copying it here and there)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question