我一直在使用 Gym 和 StableBaselines 来测试强化学习算法,最近我失去了我的虚拟环境,其中包含所有正确版本的软件包,但没有需求文档。我无法获得正确的版本或在线找到正确的版本,但现在是时候使用了:
蟒蛇 3.6
张量流 = 1.15.0
稳定 = 2.10.0
健身房 = 0.15.6
mpi4py = 3.0.3
numpy = 1.19.5
mpi 也是本地安装的
这些适用于我的一个朋友,但不适用于我的电脑。我目前正在获取此堆栈跟踪并寻找有关使用哪些版本的建议。
Traceback (most recent call last):
File "C:/Users/Brian/Desktop/Programming/BikeShare/learning/RL.py", line 1, in <module>
from stable_baselines import PPO2
File "C:\Users\Brian\Desktop\Programming\Environments\BikeSharing\lib\site-packages\stable_baselines\__init__.py", line 1, in <module>
from stable_baselines.a2c import A2C
File "C:\Users\Brian\Desktop\Programming\Environments\BikeSharing\lib\site-packages\stable_baselines\a2c\__init__.py", line 1, in <module>
from stable_baselines.a2c.a2c import A2C
File "C:\Users\Brian\Desktop\Programming\Environments\BikeSharing\lib\site-packages\stable_baselines\a2c\a2c.py", line 5, in <module>
import tensorflow as tf
File "C:\Users\Brian\Desktop\Programming\Environments\BikeSharing\lib\site-packages\tensorflow\__init__.py", line 99, in <module>
from tensorflow_core import *
File "C:\Users\Brian\Desktop\Programming\Environments\BikeSharing\lib\site-packages\tensorflow_core\__init__.py", line 36, in <module>
from tensorflow._api.v1 import compat
File "C:\Users\Brian\Desktop\Programming\Environments\BikeSharing\lib\site-packages\tensorflow_core\_api\v1\compat\__init__.py", line 23, in <module>
from tensorflow._api.v1.compat import v1
File "C:\Users\Brian\Desktop\Programming\Environments\BikeSharing\lib\site-packages\tensorflow_core\_api\v1\compat\v1\__init__.py", line 672, in <module>
from tensorflow_estimator.python.estimator.api._v1 import estimator
File "C:\Users\Brian\Desktop\Programming\Environments\BikeSharing\lib\site-packages\tensorflow_estimator\__init__.py", line 10, in <module>
from tensorflow_estimator._api.v1 import estimator
File "C:\Users\Brian\Desktop\Programming\Environments\BikeSharing\lib\site-packages\tensorflow_estimator\_api\v1\estimator\__init__.py", line 12, in <module>
from tensorflow_estimator._api.v1.estimator import inputs
File "C:\Users\Brian\Desktop\Programming\Environments\BikeSharing\lib\site-packages\tensorflow_estimator\_api\v1\estimator\inputs\__init__.py", line 10, in <module>
from tensorflow_estimator.python.estimator.inputs.numpy_io import numpy_input_fn
File "C:\Users\Brian\Desktop\Programming\Environments\BikeSharing\lib\site-packages\tensorflow_estimator\python\estimator\inputs\numpy_io.py", line 26, in <module>
from tensorflow_estimator.python.estimator.inputs.queues import feeding_functions
File "C:\Users\Brian\Desktop\Programming\Environments\BikeSharing\lib\site-packages\tensorflow_estimator\python\estimator\inputs\queues\feeding_functions.py", line 40, in <module>
import pandas as pd
File "C:\Users\Brian\Desktop\Programming\Environments\BikeSharing\lib\site-packages\pandas\__init__.py", line 55, in <module>
from pandas.core.api import (
File "C:\Users\Brian\Desktop\Programming\Environments\BikeSharing\lib\site-packages\pandas\core\api.py", line 24, in <module>
from pandas.core.groupby import Grouper, NamedAgg
File "C:\Users\Brian\Desktop\Programming\Environments\BikeSharing\lib\site-packages\pandas\core\groupby\__init__.py", line 1, in <module>
from pandas.core.groupby.generic import ( # noqa: F401
File "C:\Users\Brian\Desktop\Programming\Environments\BikeSharing\lib\site-packages\pandas\core\groupby\generic.py", line 44, in <module>
from pandas.core.frame import DataFrame
File "C:\Users\Brian\Desktop\Programming\Environments\BikeSharing\lib\site-packages\pandas\core\frame.py", line 115, in <module>
from pandas.core.series import Series
File "C:\Users\Brian\Desktop\Programming\Environments\BikeSharing\lib\site-packages\pandas\core\series.py", line 84, in <module>
import pandas.plotting
File "C:\Users\Brian\Desktop\Programming\Environments\BikeSharing\lib\site-packages\pandas\plotting\__init__.py", line 59, in <module>
from pandas.plotting._core import (
File "C:\Users\Brian\Desktop\Programming\Environments\BikeSharing\lib\site-packages\pandas\plotting\_core.py", line 17, in <module>
import pandas.plotting._matplotlib # noqa
File "C:\Users\Brian\Desktop\Programming\Environments\BikeSharing\lib\site-packages\pandas\plotting\_matplotlib\__init__.py", line 3, in <module>
from pandas.plotting._matplotlib.boxplot import (
File "C:\Users\Brian\Desktop\Programming\Environments\BikeSharing\lib\site-packages\pandas\plotting\_matplotlib\boxplot.py", line 4, in <module>
from matplotlib.artist import setp
File "C:\Users\Brian\Desktop\Programming\Environments\BikeSharing\lib\site-packages\matplotlib\__init__.py", line 107, in <module>
from . import cbook, rcsetup
File "C:\Users\Brian\Desktop\Programming\Environments\BikeSharing\lib\site-packages\matplotlib\rcsetup.py", line 28, in <module>
from matplotlib.fontconfig_pattern import parse_fontconfig_pattern
File "C:\Users\Brian\Desktop\Programming\Environments\BikeSharing\lib\site-packages\matplotlib\fontconfig_pattern.py", line 15, in <module>
from pyparsing import (Literal, ZeroOrMore, Optional, Regex, StringEnd,
File "C:\Users\Brian\Desktop\Programming\Environments\BikeSharing\lib\site-packages\pyparsing\__init__.py", line 130, in <module>
__version__ = __version_info__.__version__
AttributeError: 'version_info' object has no attribute '__version__'