Django应用程序对共享主机的依赖关系Cpanel

问题描述

我一直在尝试在与Cpanel共享的主机中部署Django应用。 但是每次我尝试安装google-cloud-automl依赖项时,我都会在服务器上收到此消息

Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>",line 1,in <module>
      File "/tmp/pip-build-vnlg73ta/grpcio/setup.py",line 212,in <module>
        if check_linker_need_libatomic():
      File "/tmp/pip-build-vnlg73ta/grpcio/setup.py",line 172,in check_linker_need_libatomic
        stderr=PIPE)
      File "/opt/alt/python37/lib64/python3.7/subprocess.py",line 800,in __init__
        restore_signals,start_new_session)
      File "/opt/alt/python37/lib64/python3.7/subprocess.py",line 1551,in _execute_child
        raise child_exception_type(errno_num,err_msg,err_filename)
    PermissionError: [Errno 13] Permission denied: 'cc'

有什么想法可以安装此依赖项吗?

解决方法

这是我的virtualenv上使用的pip版本,因此更新后可以使用