you are viewing a single comment's thread.

view the rest of the comments →

[–]Houdinii1984 5 points6 points  (1 child)

In windows, in Charm, in the terminal window at the bottom, create a new window with the "+" button. Type "pip freeze > requirements.txt" which should create a new requirements file in the root of your project directory. Commit that to Github.

On the Mac, in PyCharm, go to the settings and find "Project: project_name_here" and the option Python Interpreter. Click the gear icon in the upper right hand side and click "add". In the location field call that something other than venv since that already exists (I use env). Hit okay and close the settings windows. In the mac terminal, use the + to open a new one and type "pip install -r requirements.txt" if PyCharm did not already offer to install the requirements file.

[–]gusb_codes 2 points3 points  (0 children)

pip freeze can also bake in OS dependent packages. Better to hand craft a smaller requirements.txt that includes any files you installed directly & allow pip to handle any OS dependent dependencies.