[英]m1 macos can't install hdbcli
I have a script that starts with我有一个脚本以
import pandas as pd
from sqlalchemy import create_engine, text
hana_engine = create_engine(os.getenv('RCF_HANA_URI'), echo=False)
hana_conn = hana_engine.connect()
postgres_engine = create_engine(os.getenv('RCF_POSTGRES_URI'), echo=False)
I need to run it on my m1 macbook.我需要在我的 m1 macbook 上运行它。 I tried using conda to create an environment with all the necessary dependencies
我尝试使用 conda 创建一个具有所有必要依赖项的环境
conda create --name env pandas sqlalchemy psycopg2
conda activate env
conda create --name env pandas sqlalchemy psycopg2
conda activate env
after python script.py
I was missing sqlalchemy-hana but conda install sqlalchemy-hana and pip install sqlalchemy-hana failed because they couldn't find a package with that name with noarch or arm64 for python 3.9.在
python script.py
之后,我丢失了 sqlalchemy-hana,但是 conda 安装 sqlalchemy-hana 和 pip 安装 sqlalchemy-hana 失败了,因为他们找不到带有该名称的 package 和 python 3.9 的 noarch 或 arm64。
I tried other python versions我尝试了其他 python 版本
conda create --name env pandas sqlalchemy psycopg2 python=3.5
this failed for arm64 for python 3.5-3.7.这对于 python 3.5-3.7 的 arm64 失败。 3.8 worked.
3.8 有效。
conda create --name env2 pandas sqlalchemy psycopg2 python=3.8
conda activate env2
conda create --name env2 pandas sqlalchemy psycopg2 python=3.8
conda activate env2
now pip install sqlalchemy-hana
worked.现在
pip install sqlalchemy-hana
。 I ran the script again and got我再次运行脚本并得到
ModuleNotFoundError: No module named 'hdbcli'
So I tried to install it所以我尝试安装它
pip install hdbcli
ERROR: Could not find a version that satisfies the requirement hdbcli (from versions: none)
ERROR: No matching distribution found for hdbcli
And this is where I am stuck.这就是我被困的地方。 Is there a way to get hdbcli to work on an m1 mac?
有没有办法让 hdbcli 在 m1 mac 上工作?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.