Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VQNET下载后无法使用 #9

Open
cyx617 opened this issue Apr 21, 2022 · 4 comments
Open

VQNET下载后无法使用 #9

cyx617 opened this issue Apr 21, 2022 · 4 comments

Comments

@cyx617
Copy link

cyx617 commented Apr 21, 2022

您好!我成功下载VQNET到本地,但是在运行from pyvqnet.tensor import *的时候,会报下面的错误:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
Input In [3], in <cell line: 2>()
      1 import pyvqnet
----> 2 from pyvqnet.tensor import *
      3 a = arange(1,25).reshape([2, 3, 4])
      4 print(a)

File ~/anaconda3/envs/et/lib/python3.8/site-packages/pyvqnet/tensor/__init__.py:1, in <module>
----> 1 from .tensor import *

File pyvqnet/tensor/tensor.py:9, in init pyvqnet.tensor.tensor()
Library not loaded: /Library/Frameworks/Python.framework/Versions/3.8/Python
Reason: image not found

请问我该如何解决?

@kevzos
Copy link
Contributor

kevzos commented May 1, 2022

@cyx617 你好,请问你是mac电脑吧,能说下具体mac版本么。

@cyx617
Copy link
Author

cyx617 commented May 1, 2022

@kevzos 你好。我的的确是mac电脑,版本是macOS Mojave 10.14.4。

@kevzos
Copy link
Contributor

kevzos commented May 5, 2022

@kevzos 你好。我的的确是mac电脑,版本是macOS Mojave 10.14.4。
@cyx617 你好。(1)你可以尝试本地安装python3.8,而不是anaconda虚拟环境安装python3.8。(2)如果还是不行,你可以尝试升级macOS,11.2.3。

@cyx617
Copy link
Author

cyx617 commented May 18, 2022

@kevzos 你好。我升级了mac版本,目前是macOS Big Sur 11.6.3。但还是会报同样的错误。。
另外,如果VQNET不能支持anaconda虚拟环境安装的python3.8,那我们还是否可以使用jupyter notebook运行VQNET代码?

phaldon pushed a commit that referenced this issue Dec 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants