You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(paddlefl) [root@localhost Desktop]# python
Python 3.8.0 (default, Nov 6 2019, 21:49:08)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
import paddle
Traceback (most recent call last):
File "", line 1, in
File "/root/miniconda3/envs/paddlefl/lib/python3.8/site-packages/paddle/init.py", line 37, in
import paddle.complex
File "/root/miniconda3/envs/paddlefl/lib/python3.8/site-packages/paddle/complex/init.py", line 15, in
from . import tensor
File "/root/miniconda3/envs/paddlefl/lib/python3.8/site-packages/paddle/complex/tensor/init.py", line 15, in
from . import math
File "/root/miniconda3/envs/paddlefl/lib/python3.8/site-packages/paddle/complex/tensor/math.py", line 15, in
from paddle.common_ops_import import *
File "/root/miniconda3/envs/paddlefl/lib/python3.8/site-packages/paddle/common_ops_import.py", line 15, in
from paddle.fluid.layer_helper import LayerHelper
File "/root/miniconda3/envs/paddlefl/lib/python3.8/site-packages/paddle/fluid/init.py", line 51, in
from . import io
File "/root/miniconda3/envs/paddlefl/lib/python3.8/site-packages/paddle/fluid/io.py", line 31, in
from paddle.fluid import layers
File "/root/miniconda3/envs/paddlefl/lib/python3.8/site-packages/paddle/fluid/layers/init.py", line 19, in
from . import nn
File "/root/miniconda3/envs/paddlefl/lib/python3.8/site-packages/paddle/fluid/layers/nn.py", line 33, in
from .tensor import concat, assign, fill_constant, zeros, tensor_array_to_tensor, cast
File "/root/miniconda3/envs/paddlefl/lib/python3.8/site-packages/paddle/fluid/layers/tensor.py", line 27, in
from . import utils
File "/root/miniconda3/envs/paddlefl/lib/python3.8/site-packages/paddle/fluid/layers/utils.py", line 25, in
def convert_to_list(value, n, name, dtype=np.int):
File "/root/miniconda3/envs/paddlefl/lib/python3.8/site-packages/numpy/init.py", line 305, in getattr
raise AttributeError(former_attrs[attr])
AttributeError: module 'numpy' has no attribute 'int'. np.int was a deprecated alias for the builtin int. To avoid this error in existing code, use int by itself. Doing this will not modify any behavior and is safe. When replacing np.int, you may wish to use e.g. np.int64 or np.int32 to specify the precision. If you wish to review your current use, check the release note link for additional information.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
The text was updated successfully, but these errors were encountered:
我的python版本是3.8.0,发现当paddle1.8.5安装进来之后,无法导入关于paddle的所有包,报错了。。。
这个是遗留问题吗?有没有最新解决方案(除了换docker部署除外)
(paddlefl) [root@localhost Desktop]# python
Python 3.8.0 (default, Nov 6 2019, 21:49:08)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
The text was updated successfully, but these errors were encountered: