简体   繁体   中英

Install python module on google cloud shell as admin

I'm trying to install this module in google cloud shell with a requirements.txt file: https://pypi.org/project/kiteconnect/

However, the installation fails with this error:

Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.7/site-packages/pycparser'
Consider using the `--user` option or check the permissions.

It's a known error with the module that it needs to be pip installed on python3.7 as an admin user: https://kite.trade/forum/discussion/5131/kiteconnect-installation-issue-for-python-3-7

My question is, how do I pip install this module with admin rights on google cloud shell? Your help is greatly appreciated!

Assuming you are on a Linux-based shell...

Just use sudo pip install .

This will run pip with admin privileges.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM