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.
Thanks for stopping by! We use cookies to help us understand how you interact with our website.
By clicking “Accept all”, you consent to our use of cookies. For more information, please see our privacy policy.
Cookie settings
Strictly necessary cookies
These cookies are necessary for the website to function and cannot be switched off. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms.
Performance cookies
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us understand how visitors move around the site and which pages are most frequently visited.
Functional cookies
These cookies are used to record your choices and settings, maintain your preferences over time and recognize you when you return to our website. These cookies help us to personalize our content for you and remember your preferences.
Targeting cookies
These cookies may be deployed to our site by our advertising partners to build a profile of your interest and provide you with content that is relevant to you, including showing you relevant ads on other websites.