Hello! Here are the exact messages that appeared in the log.
ERROR: Could not find a version that satisfies the requirement twint==2.1.21
ERROR: No matching distribution found for twint==2.1.21
ModuleNotFoundError: No module named ‘twint’
I tried to uninstall my current twint package to reinstall the 2.1.20 version but it still did not work. :((
As i already said, the twint version 2.1.21 ist not in the PyPI repository, therefore pip installation fails.
Try either version 2.1.20 in your requirements.txt file or omit the version number altogether.
But be aware, in the end, only version 2.1.20 is installed nonetheless.
Hi! Both removing the version and specifying version 2.1.20 did not work for me. However, I was able to finally resolve it, by replacing the entire line in my requirements.txt file with the following:
git+https://github.com/twintproject/twint.git@origin/master#egg=twint
Thank you for your help! Next time, I’ll be more careful with the versions that I will specify.
File "/app/iris_dataset_streamlit/final_session.py", line 6, in <module>
from sklearn.model_selection import train_test_split
ModuleNotFoundError: No module named 'sklearn'
I don’t know why I am getting this error.
I followed the same following steps:
1.Creating a folder
2.Creating thee python file
3.Creating a requirements.txt
It looks like none of the Python dependencies in your requirements file were installed due to a typo in the file extension. To resolve this ModuleNotFoundError:
When I ran code in the local host I received output but after deploying the app in streamlit I got the error “dtype=‘numeric’ is not compatible with arrays of bytes/strings. Convert your data to numeric values explicitly instead.”
It looks like an environment issue. Have you tried running your app with:
python.exe -m streamlit <yourapp>.py?
If the above doesn’t work, I’d recommend doing a clean installation of Streamlit using the officially-supported environment manager for Windows:
If you install Streamlit using Anaconda, you should also install scikit-learn using Anaconda within the same environment as your Streamlit installation.