OriginQ / VQNET2.0-tutorial

9 stars 7 forks source link

VQNET下载后无法使用 #9

Open cyx617 opened 2 years ago

cyx617 commented 2 years ago

您好!我成功下载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 commented 2 years ago

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

cyx617 commented 2 years ago

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

kevzos commented 2 years ago

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

cyx617 commented 2 years ago

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