Hello friends.
I started facing this error in my third project Mean-Variance-Standard Deviation Calculator.
I tried to run other projects and now its in all of them. It seems at the back code can’t connect to python libraries.
Not sure how to resolve it. Any guidance would be appreciated.
I also read another thread on it but not sure what is the solution provided there and if anyone can please explain it to me. Unfortunately, i can’t post multiple links here but there is only one thread on google with this subject.
Looks like replit has made some changes in handling dependencies.
Currently the most straightforward way I have found is adding required modules manually in the replit.nix file (it’s hidden, you will need to click three dots at the right of the Files tab and click Show hidden files ). Then add required modules in the deps, for this project it should look like:
The solution that was mentioned here (changing the replit.nix file) DOES NOT work for me. After reading the error thoroughly, it is said that the numpy package, on which pandas and matplotlib are built on, cannot be implemented because the python version that is used for the numpy library is too old. The solution that worked for me is the following:
Under Packager Files, open poetry.lock files. Scroll down until you find [[package]] with name = "numpy". Then change the python-versions = ">=3.7" to python-versions = ">=3.8".
None of the solutions showed so far have worked for me; I’ve added the modules as said and updated the python version in poetry.lock - Can anyone help?