简体   繁体   中英

Cannot install googleapiclient on PyCharm

I have recently installed PyCharm on my Raspberry Pi 3 b+ (Running version 9 [Stretch]) and I am having some trouble installing the googleapiclient package on PyCharm and the system.

When I perform a pip/pip3 install for this package I receive an error stating:

ERROR: Could not find a version that satisfies the requirement googleapiclient (from versions: none)

ERROR: No matching distribution found for googleapiclient

This is the same error message that I receive on PyCharm when it tries to do a pip install. Python 3.7.3 has been installed and 2.7.13 from default. PyCharm project interpreter is running 3.5. I have performed an apt-get update & upgrade also.

I have been able to successfully install other packages with pip/pip3 as well.

Am I missing any other packages/dependencies?

I think you're just using the wrong name. Try pip install google-api-python-client as specified here

I've done it the next way:

  1. Created Pycharm project
  2. Created python file
  3. Pasted the code example which started with:

     from googleapiclient.discovery import build import pprint
  4. Opened terminal in Pycharm: 在此处输入图片说明

    1. Removed old python2 venv folder
    2. Installed python3-venv package: sudo apt install python3-venv
    3. Created a new venv : python3 -m venv venv
    4. Executed the next commands: $ source venv/bin/activate $ venv/bin/pip3 install google-api-python-client After this googleapiclient have been recognized by Pycharm.

即使我在我的 cmd Pycharm 中安装了软件包,我也遇到了同样的问题,因此在 Pycharm 终端中执行相同的命令为我解决了这个问题。

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