Error using pythonanywhere

1

I'm trying to set up a project in www.pythonanywhere.com but when I install the necessary libraries so that it works I get this error and the truth is that I do not understand because if someone has an idea, the help or guidance is greatly appreciated.

I run the command pip install py_expression_eval which works perfectly on any PC I try it on as long as it is installed python 3 or more, but when doing the same command on that page I get this error

I think the error is in the way I'm doing the installation of the module I'm not sure

    
asked by Daniel V 18.04.2017 в 16:30
source

1 answer

1

In order to install new modules in your pythonanywhere.com user, you must use the --user flag.

For example, if you want to install it for Python 3.6 you should do:

pip3.6 install --user py_expression_eval

A real example of use:

If you are using the default interpreter (Python 2.7) you do not necessarily need to specify the version:

pip install --user py_expression_eval

Another option is to use a virtualenv and install it inside, in which case you do not need the --user flag. For more information on installing modules, check out the Help section of the web.

Edit: The flag --user is used as is, is literal. It is not replaced by the user name we have or the user name is added to the command line at any time.

    
answered by 18.04.2017 / 17:12
source