Python mac os9/23/2023 ![]() ![]() Even if you installed the packages without being root. But typically that is not the case.Įven if you are going to be running something as root, if you properly used virtual environments, you will have access to all the packages that you need. This works if you are going to be running all of your code as root. When you install a package using sudo, you install as the root user in the root users environment on the entire system. Next, avoid using sudo when installing python packages. Instructions on virtual environments can be found here. And use virtual environments for everything else. The best way to prevent problems is to install virtualenv at the system level. Or you might find that you are not running the version of python you thought you were running. You need to make sure all of these file system paths match up, otherwise, you will encounter issues where you install a package with pip, but python still complains that the package is missing. Most issues you will encounter will be related to where Python is installed vs what paths are in your system path variables vs where pip is installing your python modules too. This article will help you troubleshoot and solve some of the issues you might encounter as you start moving to Python 3.X on MacOS. When you start upgrading Python, there is a good chance that Python will get messed up on your computer. Unfortunately, Python 2.7 is going out of support in 2020, so we all need to get to upgrading to Python 3. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |