Closed kbarrett975 closed 10 months ago
What am I missing
Thank you for opening this issue, @kbarrett975.
What exactly did you run to get this error?
I get the same problem.. I already install libcrypt and update all package to the newest version but after i ran
pip3 install -r requirements.txt
It still show the same error..may i know why
Thank you for providing the complete installation log, @Kamski18.
Try updating your pip
, setuptools
, and wheel
with the following command:
python3 -m pip install --upgrade pip setuptools wheel
After that, try installing the dependencies again:
pip3 install -r requirements.txt
Thanks for the help @matheusfelipeog but I already update using the following command but still get an error
@kbarrett975 @Kamski18 It seems that Termux has issues building the numpy
package wheel locally. The pandas
package depends on numpy
, so this error is generated when the build fails.
I've noticed that this is a common problem in Termux, with several complaints on:
link 1: https://github.com/termux/termux-packages/issues/10808 link 2: https://github.com/termux/termux-app/issues/3048 link 3: https://stackoverflow.com/questions/77228553/error-cant-install-pandas-library-on-termux-2023 link 4: https://github.com/termux/termux-app/issues/3225
Unfortunately, to use the sherlock project in a Termux environment, you'll have to follow a few extra steps for now.
First, update the package list and install updates:
pkg update && pkg upgrade
Provide the y
option for all when prompted.
The Termux community provides a repository of pre-built Python packages, called tur
(Termux User Repository). This will avoid having to build some packages locally.
Let's install tur-repo
and build-essential
, which contains some necessary packages for building other packages:
pkg install build-essential tur-repo
After that, force an update on the package list again:
pkg update
Now, let's install the pre-built pandas
and numpy
packages globally:
pkg install python-pandas python-numpy
This will install the packages. You can check using:
pip list
Now you are ready to install the sherlock project dependencies:
pip install -r requirements.txt
I personally recommend installing sherlock project dependencies in a virtual environment instead of globally to avoid conflicts with dependencies from other projects.
To create a virtual environment within the locally cloned sherlock project repository, use the following command:
python -m venv --system-site-packages venv
The --system-site-packages
flag will copy the packages installed globally to the virtual environment in venv
. This ensures that we have pandas
and numpy
within the virtual environment.
To activate the virtual environment, use the following command:
source venv/bin/activate
Now, you can install the sherlock project dependencies in this virtual environment:
pip install -r requirements.txt
When you finish using sherlock, don't forget to deactivate the virtual environment:
deactivate
I've tested this, and it worked perfectly. I hope it works for you too. If you encounter any other problems, please let me know.
Refs:
ref 1: https://wiki.termux.com/wiki/Python ref 2: https://github.com/termux-user-repository/tur ref 3: https://docs.python.org/3/library/venv.html
THANKS! It work finally..Thank you for providing help for me!
Worked for me Ty Vm!
This doesn't work on Facebook prophet same pandas error
Checklist
Description
WRITE DESCRIPTION HERE