Oct-16-2020, 07:26 PM
(**English is not my native language; please excuse typing errors.)
I just installed a site package pyGPs(via 'pip install pyGPs', you can also download from https://github.com/marionmari/pyGPs), and after I try to run to ensure that it was correctly installed, Some problems occured: 'pyGPs\__init__' and 'pyGPs\Core\__init__' these two files said that the errors are from each other, and file 'pyGPs\Core\gp' can not run either. I try to find and search through Google but I cant found what is wrong with them:
pyGPs\__init__:
(my python version is 3.8.3)
I just installed a site package pyGPs(via 'pip install pyGPs', you can also download from https://github.com/marionmari/pyGPs), and after I try to run to ensure that it was correctly installed, Some problems occured: 'pyGPs\__init__' and 'pyGPs\Core\__init__' these two files said that the errors are from each other, and file 'pyGPs\Core\gp' can not run either. I try to find and search through Google but I cant found what is wrong with them:
pyGPs\__init__:
1 2 3 4 5 6 7 8 |
from __future__ import absolute_import import Optimization import Validation import GraphExtensions from Core import * from Core.gp import * __all__ = [ 'Optimization' , 'Validation' , 'GraphExtensions' , 'Core' ] |
Error:Traceback (most recent call last):
File "C:\Users\elatm\anaconda3\Lib\site-packages\pyGPs\__init__.py", line 5, in <module>
from Core import *
File "C:\Users\elatm\anaconda3\Lib\site-packages\pyGPs\Core\__init__.py", line 6, in <module>
import gp
ModuleNotFoundError: No module named 'gp'
pyGPs\Core\__init__:1 2 3 4 5 6 7 8 9 10 11 |
from __future__ import absolute_import import inf import cov import mean import lik import gp import opt __all__ = [ 'inf' , 'cov' , 'mean' , 'lik' , 'gp' , 'opt' ] |
Error:Traceback (most recent call last):
File "C:\Users\elatm\anaconda3\Lib\site-packages\pyGPs\Core\__init__.py", line 6, in <module>
import gp
File "C:\Users\elatm\anaconda3\Lib\site-packages\pyGPs\Core\gp.py", line 51, in <module>
import inf, mean, lik, cov, opt
File "C:\Users\elatm\anaconda3\Lib\site-packages\pyGPs\Core\opt.py", line 29, in <module>
from pyGPs.Optimization import minimize, scg
File "C:\Users\elatm\anaconda3\lib\site-packages\pyGPs\__init__.py", line 5, in <module>
from Core import *
ModuleNotFoundError: No module named 'Core'
pyGPs\Core\gp:1 2 3 4 5 6 7 8 9 10 |
... import itertools import numpy as np import matplotlib.pyplot as plt import inf, mean, lik, cov, opt from tools import unique, jitchol, solve_chol from copy import deepcopy import pyGPs from pyGPs.Core.cov import FITCOfKernel ... |
Error:Traceback (most recent call last):
File "C:\Users\elatm\anaconda3\Lib\site-packages\pyGPs\Core\gp.py", line 51, in <module>
import inf, mean, lik, cov, opt
File "C:\Users\elatm\anaconda3\Lib\site-packages\pyGPs\Core\opt.py", line 29, in <module>
from pyGPs.Optimization import minimize, scg
File "C:\Users\elatm\anaconda3\lib\site-packages\pyGPs\__init__.py", line 5, in <module>
from Core import *
ModuleNotFoundError: No module named 'Core'
The first two errors said that no module named 'gp', but there is a module name gp; and the third error said that no module named 'Core', still there is a module name Core. So I wonder what are they talking about, should I reinstall them or there is something I miss in my site package? My objective is to run the file without error(my python version is 3.8.3)