[Python] How to port a PyCharm project from linux to windowsp

Discussão em 'Python' iniciado por Stack, Outubro 24, 2024.

  1. Stack

    Stack Membro Participativo

    I have a python application for the command line which i built using PyCharm. To run it, i call source venv\bin\activate and then start my application with python my_app.py.

    Now to port this to windows i copied the whole project directory (python files and venv) to my PyCharmProjects directory. When i then tried to run my application from within pycharm, it didn't work because of missing packages. So i had to manually install all necessary packages again. Once the application ran in PyCharm, i wanted to test it on the command-line, but there is no activate.bat anywhere in my venv-directory, and there is also no .venv directory. I suppose i'll have similar issues when i go from windows back to linux again.

    What is the correct way to port a Project from linux to windows (and vice versa)?

    Continue reading...

Compartilhe esta Página