Loading topic
python -m venv .venv from the previous chapter and are comfortable in a terminal. Here you will look at what that command created and how Python uses it.2 min readpython -m venv .venv and that you know what PATH is. Here you will activate that environment in each common shell, check that it worked, and leave it again.3 min readpython -m pip install inside it. It covers how to say which versions of a package you accept.2 min readpython -m pip. Once an environment has a few packages in it, you need to see what is there, check that it is healthy, and update it safely.3 min readpython -m pip. It covers how to save the packages in an environment to a file and how to rebuild the environment from that file.3 min readpython -m pip, and read version specifiers such as >=2.31,<3. It also assumes you have written a basic requirements.txt.2 min readpython -m pip. It also assumes you know what a Python package directory with __init__.py is.2 min readpython -m pip, and write a requirements.txt with pip freeze. It covers where to keep the environment, what to commit, and how to rebuild it.3 min readpython -m pip install. Most environment problems come from one cause: the python or pip you ran is not the one you meant. The fixes below start from that question.2 min readpython -m pip inside it. It shows how to change pip's default behavior and how to install from somewhere other than the public Python Package Index (PyPI).3 min readpython -m venv, install packages with python -m pip, and read a requirements file. It places three related tools next to those two. You don't need any of them to follow the rest of the tutorial.2 min read