Closed morinstar closed 6 months ago
first: export SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True then: pip install pysurvival
I fixed it using this approach:
sudo apt install build-essential
sklearn
line.pip install -e .
first: export SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL=True then: pip install pysurvival
Thx buddy! I was in windows os and pysurvival clearly missed some part to be compatible here. After that environment varible setted, still got more coming up errors. I ended up downloading Bacalfa's zip and installed this package.
I fixed it using this approach:
- On Ubuntu or Windows WSL2 Ubuntu run this command:
sudo apt install build-essential
- Then install Anaconda and create a Python 3.7 environment.
- Clone this repository, edit requirements.txt file and remove
sklearn
line.- Go to the directory you cloned using cd command and run
pip install -e .
Thx a lot! I am on Windows OS and switching to Ubuntu or Linux sounds like a lot trouble. I got some hint from your tips tho. Did it with the package modified by Bacalfa https://github.com/square/pysurvival/issues/8
problem solved
I fixed it using this approach:
- On Ubuntu or Windows WSL2 Ubuntu run this command:
sudo apt install build-essential
- Then install Anaconda and create a Python 3.7 environment.
- Clone this repository, edit requirements.txt file and remove
sklearn
line.- Go to the directory you cloned using cd command and run
pip install -e .
Thank you! Solved!
I watched every guide and I am using PY. I am using py3.7 venv due to campatibility issue, I installed the C++ complier and I installed scikit-learn instead of sklearn. Still got this error reported:
ERROR: Command errored out with exit status 1: command: 'D:\applications\py3.77\pythonw37.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\lenovo\AppData\Local\Temp\pip-install-20jj10l0\sklearn\setup.py'"'"'; file='"'"'C:\Users\lenovo\AppData\Local\Temp\pip-install-20jj10l0\sklearn\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info cwd: C:\Users\lenovo\AppData\Local\Temp\pip-install-20jj10l0\sklearn\ Complete output (15 lines): The 'sklearn' PyPI package is deprecated, use 'scikit-learn' rather than 'sklearn' for pip commands.
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. WARNING: You are using pip version 19.2.3, however version 23.3.2 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command.
Any idea how to solve this?