It is recommended to use either pip or conda if you are using Anaconda distribution to install pandas. In this article, I have covered different ways to install python pandas on Windows, Linux, and Mac OS. conda create -n envname python x.x anaconda. Now replace the envname with the name you want to give to your virtual environment and replace x.x with the python version you want to use. If you wanted to install to a specific user then use -user option Type conda search python to see the list of available python versions. Anaconda is a data science platform built around the programming language Python. If you are not the root user then use sudo as by default python packages are installed in the system directory where you may not have permission to write files. On Mac OS, you can use either pip or conda to install pandas. On Linux distribution you may not find all pandas versions hence, the recommended approach would be using pip and conda. I have to use sudo to run the above command as root. On Linux, you can either use above mentioned commands pip & conda) or use the Linux distribution package manager to install python pandas, so depending on the flavor of Linux you are using the command would change. On Windows, open an Anaconda Prompt and run where python On macOS and Linux, open the terminal and run which python To see which packages are installed in your current conda environment and their version numbers, in your terminal window or an Anaconda Prompt, run conda list. If you wanted to install pandas after creating the Conda environment then run the following commands
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |