I want to pip install with PythonAnywhere

Introduction

In my article, I always read the familiar self-made boat racing prediction site, "Today, good luck. Is the expectation correct? "has added a natural language processing function. In this article, we will implement it in PythonAnywhere! It summarizes the troubles that occurred at the stage of becoming.

Works on Local, but not on PythonAnywhere! !!

After verifying the operation in the Local environment, I replaced the file on PythonAnywhere and updated it !! However, an error occurred here .. When I checked the errorlog, it seemed that the cause was that janome was not installed ...

image.png

It was surprisingly easy pip install

I could do something like "pip install janome" in the environment on PythonAnywhere, so I searched for a way to do it and found it. The procedure is as follows.

① Go to the Console tab and click Bash console </ b> image.png

② When opened, type pip install --user janome </ b> The same is true if you want to install another module. (The figure below is after installing ..) image.png

③ Type "pip list" to make sure it is entered! </ b> image.png

in conclusion

You can now safely run on PythonAnywhere! !! I'm happy. I hope you read my separate article about what I did with janome installed ...

The explanation was also posted on the Official Site, so please refer to it as well.

Recommended Posts