Unable to do pip install pandas-profiling - python

I've tried severally to install Pandas-Profiling on my windows 10 cmd using "pip install pandas-profiling" but it doesn't work. I've also tried installing it on conda but its the same story. I need help installing this please.

I also had the same problem. It didn't work with a normal pip install. I fixed it by running the following command in anaconda prompt:
conda install -c anaconda pandas-profiling
You can find the full documentation here.
Hope it helps :)

if you don't provide the error message, we can't help you.
If you have the following error message:
'pip' is not recognized as an internal or external command,
operable program or batch file.
It means that Python is not added to your Path environment variable. How to fix it:
First solution: Adding Python to the Path by going in your environment variables, in System Variables click on Path then Edit, and in the grid, add your Python's path (which may be C:\Users\<user>\AppData\Local\Programs\Python\Python<version>\). You can also add Python yo the Path by uninstall it and install it again and in the installer, make sure you check "Add Python to PATH"
Second solution: You can run pip by putting python3 -m before you pip command, like that: python3 -m pip install pandas-profiling.

I have been able to find a solution to the error message. I had to install the Microsoft C++ Build Tools, then I launched it and did the installation through it using ‘pip install pandas-profiling’ you can download using the link https://visualstudio.microsoft.com/visual-cpp-build-tools/

For me it only works also if putting "py"
so:
py -m pip install pandas-profiling
In the command prompt.

Related

Problem with installing Python in external drive

I am a beginner in Python and PyCharm. I had installed both Python and PyCharm in my D drive, instead of C. But then, I was facing some issues, so had to uninstall and reinstall them in my C drive. Now, when I use the pip command in CMD, it says
Fatal error in launcher: Unable to create process using '"D:\Program Files\Python\python.exe" "C:\Users\USERNAME\AppData\Local\Programs\Python\Python39\Scripts\pip.exe" ': The system cannot find the file specified.
I tried looking for solutions but have given up. Does anyone have any suggestions?
This is because your path file is still leading to the pip in D: Go to path and change that to your C: directory for pip
Try to install via Python website it could fix your terminal issues.
In PyCharm settings you can change your Python environnement (tutorial here).
I also had the same problem and I tried the following steps:
Open CMD as an administrator.
Write 'python -m pip install -U --force pip' in the CMD.
Restart your PC/laptop.
Try the pip command now.

How to create an executable with a pycharm python file though pyinstaller?

I have been trying to install pyinstaller in order to create an executable of a python project I have been working on, but my pip command simply doesn't work. This is the error I would get "'pip' is not recognized as an internal or external command, operable program or batch file". I have already checked the interpreter of my pycharm project, and it shows that it has pip already installed. I tried to look this up online, and I found out that a problem could be that the environment variable Path just needs to have the directory of my python version, but even after doing this, it still would not work. For additional information, I already tried to find the directory by using the command "where python" in the command prompt, but that path didn't work, and I'm using windows 10.
Usually for most of users, there would be a problem as you mention above. In such situation, you just need to install pip again with command like
python -m pip3 install -U pip
and remember next time, if pip reminds you to upgrade it, do not just use
pip install -U pip

can't run ipython on cmd

I successfully installed ipython via pip. I wanted then to use it by launching it through windows 10 command prompt but am getting the following error
'ipython' is not recognized as an internal or external command,
operable program or batch file.
I have gone through many questions on stackoverflow but cannot get a relevant solution.
I tried pip install ipython to confirm the ipython is installed and following on the instruction on my tutorial, i typed ipython on cmd to launch the program and it has never worked. This is slowing down my learning, please help!
Found the solution: run python -m IPython (case sensitive).
To find that out, I ran pip show ipython and it showed me some info, including the path of the module (for me: c:\users\mathieures\appdata\local\packages\pythonsoftwarefoundation.python.3.9_qbz5n2kfra8p0\localcache\local-packages\python39\site-packages). In there, a folder named IPython!
Search in your machine the ipython application (directory in which it is installled) and the add the path to PATH environment variables.
For example in my case location was C:\Users\DELL\AppData\Local\Programs\Python\Python37\Scripts
Add this path to PATH environment variable (see here) and your problem is solved.
for first uninstall ipython python -m pip uninstall ipython then install ipython with code python -m pip install ipython when finished type ipython to run.
I had the same problem, and what i simply did is uninstall it using pip uninstall ipython and then reinstall it using pip install ipython like the same as what Ali vatankhah did but without adding python -m in the command.

How to install packages with pip in Windows PowerShell

I am using Python 2.7.9 on a Windows 8 computer.
I tried to install lxml by typing pip install lxmlin Windows PowerShell after typing python, but I get the following error: SyntaxError: invalid syntax
I tried installing pip by using the following tutorial http://www.tylerbutler.com/2012/05/how-to-install-python-pip-and-virtualenv-on-windows-with-powershell/ only to later realize that I already had pip.exe, pip2.7.exe and pip2.exe installed when I first installed Python. They are located in the C:\Python27\Scripts directory.
Yet, if I try something like pip help I will get an invalid syntax error.
Do I have to reinstall pip or how do I get it to work in order to install the lxml library.
Thank you for any help you can provide.
I had the same problem. You need to set the PATH environment variable, so that the system recognizes the command "pip".
If typing easy_install or pip [in PowerShell] doesn’t work, it means the Scripts folder is not in your path. Run the next command in that case (Note that this command must be run only once or your PATH will get longer and longer). Make sure to replace c:\Python33\Scripts with the correct location of your Python installation:
setx PATH "%PATH%;C:\Python33\Scripts"
Close and reopen PowerShell after running this command.
Source: http://arunrocks.com/guide-to-install-python-or-pip-on-windows/
Starting from Python versions 2.7.9 and 3.4.0, 'pip' is already included in the regular install. Check if the path to the 'Scripts' directory inside your Python installation directory is contained in your system's 'PATH' environment variable, so 'pip' can be found.
Look here for more information:
How do I install pip on Windows?
Edit: Sounds like you are trying to run pip inside python, You shouldn't get an 'invalid syntax' error through the command prompt. More like "'pip' is not recognized". Try simply just opening command prompt and typing 'pip help'

pip on Windows giving the error - Unknown or unsupported command 'install'

I installed pip on Windows by downloading http://pypi.python.org/packages/source/p/pip/pip-1.0.2.tar.gz#md5=47ec6ff3f6d962696fe08d4c8264ad49 and running python setup.py install
Installation went fine with no errors.
But when I tried installing selenium package with it, it gives me the following error -
pip install -U selenium
Unknown option: u
Unknown or unsupported command 'install'
Where I'm making the mistake?
Do you happen to have the Perl pip lying around somewhere?
Sounds like the problem described here:
https://github.com/mike-perdide/gitbuster/issues/62
To check, in Windows command prompt execute:
C:\>where pip
This will potentially output the following:
C:\strawberry\perl\bin\pip
C:\strawberry\perl\bin\pip.bat
If so, this is your problem. Unistall Strawberry Perl or use the full path to python pip.
This error is because the system is finding pip.bat before it finds pip.exe.
You do NOT need to uninstall Strawberry Perl or type the whole path.
What I do is to simply type pip.exe (same number of keystrokes as apt-get) when I want to use the Python utility. This method seems to work find for me on Win7 with Python(x,y) 2.7x and Strawberry Perl installed.
Had the same problem under Ubuntu and did:
$ sudo apt-get remove pip
$ sudo apt-get install python-pip
I had this problem as well, and like Johannes said, it's because the perl pip is interfering with your Python pip.
To get around it, you can simply do this as well:
python -m pip install <package_name>
In addition to the very helpful nswer of Johannes:
If you don't want to uninstalll Strawberry, you can re-arrange the order of PATH entrys in your Windows system to ensure your Python\Scripts are found before the strawberry entries. If you don't want to do this manually, you can use tools like the "Rapid Environment Editor".
You should provide path in environment variable for pip.exe file
while executing install command you should use below command
pip.exe install selenium
This will surely work, for me this worked :)
You can also solve this problem without removing Strawberry Perl or type the whole path.Move to this C:\Python2.7\Scripts(your Python directory) directory,then use pip command.
For Python 3.X and above:
In the CMD prompt type:
py -m pip install <package_name>
Make sure pip is installed already.
Setup the environment variable for pip pointing to the exe file
To upgrade:
py -m pip install --upgrade pip
Same issue with DwimPerl. Uninstalling Dwim fixed the issue as well.
C:\Python27\Scripts\pip.exe install -U selenium
I have the same problem in windows 10, finally resolved the problem successfully.
I used the following command
where pip
I was showing multiple installations of pip. Once removed other installation it worked fine.
open cmd and type where pip and you will have
C:\Dwimperl\perl\bin\pip.bat
C:\Dwimperl\perl\bin
C:\Users\athus\AppData\Local\Programs\Python\Python38-32\Scripts\pip.exe
and go to C:\Dwimperl\perl and delete bin folder.
and again type where pip and you will only have
C:\Users\athus\AppData\Local\Programs\Python\Python38-32\Scripts\pip.exe
and enjoy python pip.

Categories

Resources