Skip to content

WorkingWithPythonProjects

Oren Mishali edited this page Oct 22, 2020 · 2 revisions

Working with Python Projects

Here is one possible workflow that we find effective.

  • Install the latest Python.
  • Create a directory for your project.
  • Create a virtual environment within the project, see here.
    • Activate your environment
    • Install the packages you need using pip.
    • Create file requirements.text with the dependencies (update the file when new packages are installed).
  • When you are ready, upload your project to pypi.org! see here.
    • Note: for upgrades you may need to add --skip-existing to twine as explained here.

Notes:

  • All commands above are executed using the command line (on Windows we use Git bash, which is part of Git for Windows).
  • To develop using an IDE (e.g., PyCharm), open the project directory from the IDE while setting the virtual environment you have created.

Clone this wiki locally