linux 未来功能注解未定义错误google-cloud-bigquery install

uqzxnwby  于 12个月前  发布在  Linux
关注(0)|答案(1)|浏览(178)

我创建了一个虚拟环境(python 3.6.9):

  • Cython(0.29.35)
  • joblib(1.1.1)
  • numpy(1.19.5)
  • Pandas(1.1.5)
  • pip(9.0.1)
  • pkg-resources(0.0.0)
  • python-dateutil(2.8.2)
  • pytz(2023.3)
  • scikit-learn(0.24.2)
  • scipy(1.5.4)
  • 安装工具(39.0.1)
  • 六(1.16.0)
  • sklearn(0.0.post5)
  • threadpoolctl(3.1.0)

错误:
(venv)apolloadmin@apollo-nginxlb-scale-vm:/home/reportsdeploy/Automation/Jenkins/python_scripts/Scrum/Model_v4$ pip install google-cloud-bigquery收集google-cloud-bigquery
使用缓存https://files.pythonhosted.org/packages/c2/df/20df6c70ea4b8d7b62df47a9103f986aaa41f3ebdb8b7b58f70b486b6218/google_cloud_bigquery-3.2.0-py2.py3-none-any.whl收集google-cloud-bigquery-storage<3.0.0dev,>=2.0.0(来自google-cloud-bigquery)使用缓存https://files.pythonhosted.org/packages/e0/3f/fe46dc40a8d29447a95cf49d9c1f139cb75c4ebc2bd80fffb0d0d225ef16/google_cloud_bigquery_storage-2.13.2-py2.py3-none-any.whl收集pyarrow<9.0dev,>=3.0.0(来自google-cloud-bigquery)使用缓存https://files.pythonhosted.org/packages/38/c6/97a4133eea642155e7a73cb946d889cadc461a1e6b93f5627af9fdd7b3f3/pyarrow-6.0.1.tar.gz从命令python完成输出setup.py egg_info:/usr/lib/python3.6/distutils/dist.py:261:UserWarning:Unknown distribution option:“long_description_content_type”警告。warn(msg)Traceback(最近的调用最后):文件“",行1,在文件“/tmp/pip-build-dfz 5x 1uv/pyarrow/setup.py“,行632,在url ='https://arrow.apache.org/' File“/home/reportsdeploy/Automation/Jenkins/python_scripts/Scrum i/Model_v4/venv/lib/python3.6/site-packages/setuptools/init.py”,第129行,在安装程序中返回distutils.core.setup(attrs)文件“/usr/lib/python3.6/distutils/core.py“,第108行,在setup _setup_distribution = dist = klass(attrs)文件“/home/reportsdeploy/Automation/Jenkins/python_scripts/Scrum i/Model_v4/venv/lib/python3.6/site-packages/setuptools/dist.py“,第372行,在init**_Distribution.init中(self,attrs)File“/usr/lib/python3.6/distutils/dist.py”,line 281,ininitself.finalize_options()File“/home/reportsdeploy/Automation/Jenkins/python_scripts/Scrum i/Model_v4/venv/lib/python3.6/site-packages/setuptools/dist.py“,line 528,in finalize_options ep.load()(self,ep.name,value)File“/home/reportsdeploy/Automation/Jenkins/python_scripts/Sundi/Model_v4/venv/lib/python3.6/site-packages/pkg_resources/init.py”,line 2324,in load return self.resolve()File“/home/reportsdeploy/Automation/Jenkins/python_scripts/Sundi/Model_v4/venv/lib/python3.6/site-packages/pkg_resources/init.py”,line 2330,在解析模块=import(self.module_name,fromlist=“自”*name“],级别=0)文件“/tmp/pip-build-dfz 5x 1uv/pyarrow/.eggs/setuptools_scm-7.1.0-py3.6.egg/setuptools_scm/init.py”中,第5行来自futureimport annotations ^语法错误:未定义future要素annotations

---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-dfz5x1uv/pyarrow/

字符串

33qvvth1

33qvvth11#

setuptools_scm需要python>=3.7 for v7.x https://github.com/pypa/setuptools_scm/commit/d65a0377a71b2915107d4e816c0f5e1724d42f82
在调用setup.py之前,请尝试使用Python <3.7

pip install setuptools-scm==6.4.2

字符串

相关问题