Problem installing scikit-survival in Google Colab - python

I am facing a problem to install scikit-survival in Google Colaboratory. Everytime it says:
pip install scikit-survival
Collecting scikit-survival
Using cached https://files.pythonhosted.org/packages/91/f0/047ce90bb831ab34ca287d1d23f0c61b6546cd89494566898c0e17516990/scikit-survival-0.15.0.post0.tar.gz
Installing build dependencies ... done
Getting requirements to build wheel ... error
ERROR: Command errored out with exit status 1: /usr/bin/python3 /usr/local/lib/python3.7/dist-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpncdknf_f Check the logs for full command output.
However, I don't get the Error. I've installed the newest Python version and any other pip install command works. Does anyone has an idea?
Kind regards,
Hashriama

The error is with different versioning and something related to it. Try the following in Colab.
!pip install --upgrade pip
!pip uninstall --yes --quiet osqp
!pip install -U scikit-survival
This should do the job.

Related

Installation error streamlit: Building wheel for pyarrow (pyproject.toml) ... error

I try to install metaploit, but every time I get errors and I can't get it to work.
During installation I get the following error code:
pip install --upgrade streamlit
(Deleted a lot of irrelevant information)
Building wheels for collected packages: pyarrow
Building wheel for pyarrow (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pyarrow (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [291 lines of output]
ModuleNotFoundError: No module named 'cmake'
error: command 'D:\\Eind Project Programming Final\\venv\\Scripts\\cmake.exe' 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 pyarrow
Failed to build pyarrow
ERROR: Could not build wheels for pyarrow, which is required to install pyproject.toml-based projects
I have already tried the following:
Re-install Pycharm and Python and install the 64 bit version. (Running no other python or program)
Tried different versions of the packages.
Deleted & Re-installed packages.
Finding a solution on google.
(Latest python, pycharm version and all the packages I updated to the lastest versions.)
Tried these commands:
pip uninstall streamlit
pip uninstall wheel
pip uninstall setuptools
pip uninstall pip
pip install --upgrade streamlit
pip install --upgrade matplotlib
pip install --upgrade setuptools
pip install --upgrade wheel
pip install --upgrade pyarrow
pip install --upgrade cmake
Are you using Python 3.11? Because in that case, it's described in this issue: pyarrow doesn't support Python 3.11 yet (here is the PR in pyarrow's github, it'll arrive in the next release). So either you simply wait until that is released, or you install Python 3.10 until then.
As of today, there is not pyarrow for Python 3.11 on wheel with precompiled binaries. That means you have two options:
Build it yourself which is quite a ride [pyarrow documentation]
Use pip with the nightly build [pyarrow documentation] which is reasonable:
pip install --extra-index-url https://pypi.fury.io/arrow-nightlies/ \
--prefer-binary --pre pyarrow
The main error here you are getting is,
No module named 'cmake'
While you have gotten to the depths of the problem and tried a few other solutions I wonder what this one returned as a result.
pip install --upgrade cmake
I tried to download cmake into a new virtualenvironment and it worked just fine. I would also suggest that you start a new environment start by building cmake and go along with whatever you are gonna install next.

installing pandas-profiling error in python 3.10

I am trying to install pandas-profiling in python 3.10 using pychan installation package option. It is giving error. I tried the same using command prompt. Giviing the same error.
Few last lines of error are as below:
'-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\admin\AppData\Local\Temp\pip-install-j19ut5x7\phik_da8a6ed5567b4ca3b73ac99e2a8c743e\build\lib.win-amd64-3.10\phik\lib']' returned non-zero exit status 1.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for phik
ERROR: Could not build wheels for phik, which is required to install pyproject.toml-based projects
Any suggestion to fix this issue.
I have previously encountered the same challenge and I could resolve it by doing the following two steps in exactly this order:
Update setuptools: based on your information provided you are using pip, therefore the command is the following one: pip install --upgrade setuptools
Now run the installation command (as provided by the official documentation: https://pypi.org/project/pandas-profiling/): pip install pandas-profiling
As an alternative, in case you are using Anaconda these two steps will be as follows:
Update setuptools: conda upgrade setuptools
Install pandas-profiling from Anaconda: conda install -c conda-forge pandas-profiling
Hope this helps!

ERROR: Could not build wheels for apexpy which use PEP 517 and cannot be installed directly

I need to install apex to use this github: https://github.com/SwinTransformer/Swin-Transformer-Object-Detection
But Using pip install apexpy, I encountered the following error: ERROR: Could not build wheels for apexpy which use PEP 517 and cannot be installed directly.
I tried using the following, but in vain:
pip install --no-use-pep517 apexpy (I get different error: ERROR: Command errored out with exit status 1)
I have also tried to upgrade/downgrade my pip, and I did pip install --upgrade pip stepuptools wheel
(I am using Python 3.7 and I don't have admin access)
Solved using:
git clone https://github.com/NVIDIA/apex
cd apex
pip install -v --disable-pip-version-check --no-cache-dir ./

I am getting this error when I am trying to install Command "python setup.py egg_info" failed with error code 1

I am trying to install countvar package but I am always receiving the above error. I have updated my installation tools but I still receiving it.
Most of the times this is resolved by the following approach
python -m pip install --upgrade pip
pip install "package-name"

scikit_image library is not installing

I am trying to install scikit-image library in python 3.4.4on windows. I am using the following command:
pip install scikit-image
I am installing it in the following path
C:\Python34\Scripts
It's not working showing the following error:
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Usman\AppData\Local\Temp\pip-build-utv6_a2u\scikit-image\
I tried also installing it through the .whl file,, but still it's not working.
Pip version is
pip 9.0.1
Please tell me what should I do?
Try to run one of the following and than try to install again the requested library.
pip install --upgrade setuptools or easy_install -U setuptools
As setuptools contains a lot of important files including egg files, it can cause problems when it's not updated\installed.

Categories

Resources