Skip to content

Cant pip install #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ismaelct opened this issue Jan 7, 2024 · 3 comments
Open

Cant pip install #1

ismaelct opened this issue Jan 7, 2024 · 3 comments

Comments

@ismaelct
Copy link

ismaelct commented Jan 7, 2024

Hi, I was trying to install it, when doing pip install -r requirements.txt thrown

ERROR: Invalid requirement: 'abseil-cpp=20211102.0=hd77b12b_0' (from line 4 of requirements.txt)Hint: = is not a valid operator. Did you mean == ?

@a4ashis
Copy link

a4ashis commented Aug 24, 2024

same issue

@wahackr
Copy link

wahackr commented Sep 30, 2024

Did some Google and get the answer
"requirements.txt file generated with Anaconda"

https://stackoverflow.com/questions/63995262/is-not-a-valid-operator-when-trying-to-install-packages-with-pip

Me not a Python programmer, tried removing the tailing version number, still lots of packages can't be installed.

@akiraexe
Copy link

I have successfully installed it but with a workaround. Instead using:

pip install -r requirements.txt

I tried installing Conda and installed the first streamlit package, but in a new environment, this is an example WAAN, you can use anything:

conda create --name WAAN
conda activate WAAN

Remember to deactivate the base environment first. Then add channel conda-forge to enable the installation of required dependencies. Once set up, install the streamlit package:

conda install streamlit

¿Why don't use or specify the version? Well, you could run into problems because these versions are conflicting and some no longer exist in the repos of the channel conda-forge. Then install every dependency. I've discovered that the file has dependencies not required to run the app.py app.

conda install worldcloud
conda install seaborn
conda install plotly
conda emoji
pip install urlextract

Then run streamlit run app.py

I used pip in the last requirement because this is not found on Conda repos, note: it's no need to install pip because is already installed by streamlit package.

Sadly everything is running well but it doesn't analyze my file and throws a list.remove(x):x not in list. Give it a try and tell me if this solution works for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants