Once you have the virtual environment activated, you can start using pip to install python modules, otherwise it is better to use apt or yum. If you want to use pip it is advisable to use Python virtual environments The python modules can be installed from the Ubuntu repositories, or using pip tool, it is always better to install anything from the Ubuntu repositories if you are going to install globally, otherwise you can run into incompatibility issues. To install it just run this command: sudo apt install python3-pip It integrates with virtualenv, doesnt do partial installs. Ubuntu 20.04 comes with python3 installed by default, and if you are starting a new project python3 is what you have to use, phthon2 can be installed, but it is not recommended. pip is a replacement for easyinstall, and is intended to be an improved Python package installer. Pip is a tool to manage Python modules, it lets you find, install, updated and remove packages, just like apt does for Debian.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |