Command prompt fails to install sklearn - installation

I am quite new to python and I am trying to run some exercises and, in order to do it, I should install sklearn, xgboost and pandas. I give the command pip install to command prompt, but it keeps giving me back always the same message:
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
Getting requirements to build wheel did not run successfully.
exit code: 1
See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
[end of output
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
I tried to look for answers on stack overflow, but anything I try to run gives back the same error. Do you guys have any tips on how to solve the problem?
I tried to run
pip install -U setuptools

Related

How can I solve this installation problem with fastavro on Mac?

I am trying to run in my Mac a Python program which requires working with .avro binary files.
Despite trying to install it by using: pip install fastavro, I always get an error message on the terminal that ends with the following lines:
...
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for fastavro
Failed to build fastavro
ERROR: Could not build wheels for fastavro, which is required to install pyproject.toml-based projects
I have updated conda to its latest version on my PC as well as updated pip as well.
Does anyone know how to solve this? I really need to run this program on Mac as soon as possible. For your information, I am able to install and use fastavro on Windows but not on Mac so this is likely to be a Mac-specific problem.
Thanks a lot
Since you are working in a conda environment, why not install it with conda? I often find installations via conda much more convenient since it takes care of all non-Python dependencies as well.
So try uninstalling the package first with pip: pip uninstall fastavro and then installing it via conda: conda install fastavro -c conda-forge.
In case you are unfamiliar with the -c conda-forge flag, it tells conda to look for the package on the conda-forge channel which has almost all packages that are not available via the standard channels.

Why Cmd showing erros while installing Kivy?

I am proceeding as steps given by kivi and got stuck at step3.
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
You can use command pip3 install kivy or you can see it here
https://pypi.org/project/Kivy/

Trying to Install Orange-3 Text Mining Add In [Error] - Command failed: python python -m pip install Orange3-Text exited with non zero status

I am trying to install the Text add-in for Orange 3 but I get this error each time:
Command failed: python python -m pip install Orange3-Text exited with non zero status.
My pip is up to date too so I'm not sure what the issue is or how I can get around this. How can I resolve this?
This should be solved with the latest build of Text. I am sorry for this mess, it is my fault. We had to put ufal.udpipe dependency on conda and it took a while. Now it should be fixed.

Environment error when installing with pip

I'm trying to install some python libraries with pip and I'm getting a repeated error when running it. For example, if I run pip install -U py2app the download appears to proceed as normally, but then an error is raised:
Could not install packages due to an EnviromentError
Which is followed by a series of [Errno 1] Operation not permitted errors (with directories listed after each error).
This error has appeared a number of times on several different libraries I've attempted to install, and it's extremely frustrating. I've tried to update the tools that people have recommended to update for various pip errors and none of them have made any difference.
Is there an easy fix to this problem?
Try to install using the option --user for example:
$ pip install --user py2app
Passing the --user option will install a package just for the current user, rather than for all users of the system.

Scrapy installation problems

I'm trying to install Scrapy in cygwin, and I've finally got easy_install working but it keeps giving this error message: Setup script exited with error:
'gcc' failed with exit status 1
I'm using gcc version 3.4.4. Any ideas, I'm at a loss for what to try next? Before it gives this error message it print out thousands of line about OpenSSl, I'm not sure if that means the problem is in OpenSSL or not.
Finally found the root problem was in pyOpenSSL and is addressed here easy_install PyOpenSSL error.
Update: For other gcc errors that I later got I found that installing gcc4 from the cygwin setup fixed it.

Resources