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
你好:
为什么我想复现这个论文的时候,安装虚拟环境安装的是3.6的话,我会出现错误如下:
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
Traceback (most recent call last):
File "/opt/conda/envs/CAST/bin/pip", line 6, in
sys.exit(pip.main())
File "/opt/conda/envs/CAST/lib/python3.6/site-packages/pip/init.py", line 249, in main
return command.main(cmd_args)
File "/opt/conda/envs/CAST/lib/python3.6/site-packages/pip/basecommand.py", line 251, in main
timeout=min(5, options.timeout)) as session:
File "/opt/conda/envs/CAST/lib/python3.6/site-packages/pip/basecommand.py", line 69, in _build_session
if options.cache_dir else None
File "/opt/conda/envs/CAST/lib/python3.6/posixpath.py", line 78, in join
a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not int
说的是我有一个文件名是整型的;
......................
......................
后面还有
......................
......................
numpy/core/src/multiarray/scalartypes.c.src: In function ‘half_arrtype_hash’:
numpy/core/src/multiarray/scalartypes.c.src:3341:27: error: incompatible type for argument 1 of ‘_Py_HashDouble’
3341 | return _Py_HashDouble(npy_half_to_double(((PyHalfScalarObject *)obj)->obval));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| double
In file included from /opt/conda/envs/CAST/include/python3.10/Python.h:77,
from numpy/core/src/multiarray/scalartypes.c.src:3:
/opt/conda/envs/CAST/include/python3.10/pyhash.h:10:38: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘double’
10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
| ^~~~~~~~~~
numpy/core/src/multiarray/scalartypes.c.src:3341:12: error: too few arguments to function ‘_Py_HashDouble’
3341 | return _Py_HashDouble(npy_half_to_double(((PyHalfScalarObject *)obj)->obval));
| ^~~~~~~~~~~~~~
In file included from /opt/conda/envs/CAST/include/python3.10/Python.h:77,
from numpy/core/src/multiarray/scalartypes.c.src:3:
/opt/conda/envs/CAST/include/python3.10/pyhash.h:10:23: note: declared here
10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
| ^~~~~~~~~~~~~~
gcc: numpy/core/src/multiarray/typeinfo.c
numpy/core/src/multiarray/scalartypes.c.src: In function ‘longdouble_arrtype_hash’:
numpy/core/src/multiarray/scalartypes.c.src:3312:1: warning: control reaches end of non-void function [-Wreturn-type]
3312 | }
| ^
numpy/core/src/multiarray/scalartypes.c.src: In function ‘float_arrtype_hash’:
numpy/core/src/multiarray/scalartypes.c.src:3312:1: warning: control reaches end of non-void function [-Wreturn-type]
3312 | }
| ^
numpy/core/src/multiarray/scalartypes.c.src: In function ‘half_arrtype_hash’:
numpy/core/src/multiarray/scalartypes.c.src:3342:1: warning: control reaches end of non-void function [-Wreturn-type]
3342 | }
| ^
gcc: numpy/core/src/multiarray/vdot.c
gcc: numpy/core/src/multiarray/usertypes.c
gcc: numpy/core/src/umath/umathmodule.c
gcc: numpy/core/src/multiarray/number.c
gcc: build/src.linux-x86_64-3.1/numpy/core/src/umath/loops.c
gcc: numpy/core/src/umath/ufunc_object.c
gcc: numpy/core/src/umath/reduction.c
gcc: build/src.linux-x86_64-3.1/numpy/core/src/multiarray/nditer_templ.c
gcc: build/src.linux-x86_64-3.1/numpy/core/src/umath/scalarmath.c
numpy/core/src/umath/loops.c.src: In function ‘PyUFunc_On_Om’:
numpy/core/src/umath/loops.c.src:506:9: warning: ‘PyEval_CallObjectWithKeywords’ is deprecated [-Wdeprecated-declarations]
506 | result = PyEval_CallObject(tocall, arglist);
| ^~~~~~
In file included from /opt/conda/envs/CAST/include/python3.10/Python.h:130,
from numpy/core/src/umath/loops.c.src:7:
/opt/conda/envs/CAST/include/python3.10/ceval.h:17:43: note: declared here
17 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject ) PyEval_CallObjectWithKeywords(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc: numpy/core/src/npymath/npy_math.c
gcc: numpy/core/src/multiarray/flagsobject.c
gcc: numpy/core/src/multiarray/getset.c
gcc: build/src.linux-x86_64-3.1/numpy/core/src/npymath/ieee754.c
gcc: build/src.linux-x86_64-3.1/numpy/core/src/npymath/npy_math_complex.c
gcc: numpy/core/src/multiarray/nditer_api.c
gcc: numpy/core/src/npymath/halffloat.c
gcc: numpy/core/src/common/npy_longdouble.c
gcc: numpy/core/src/common/array_assign.c
gcc: numpy/core/src/common/ucsnarrow.c
gcc: numpy/core/src/common/mem_overlap.c
numpy/core/src/common/ucsnarrow.c: In function ‘PyUnicode_FromUCS4’:
numpy/core/src/common/ucsnarrow.c:139:9: warning: ‘PyUnicode_FromUnicode’ is deprecated [-Wdeprecated-declarations]
139 | ret = (PyUnicodeObject )PyUnicode_FromUnicode((Py_UNICODE)buf,
| ^~~
In file included from /opt/conda/envs/CAST/include/python3.10/unicodeobject.h:1046,
from /opt/conda/envs/CAST/include/python3.10/Python.h:83,
from numpy/core/src/common/ucsnarrow.c:4:
/opt/conda/envs/CAST/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject) PyUnicode_FromUnicode(
| ^~~~~~~~~~~~~~~~~~~~~
gcc: numpy/core/src/common/ufunc_override.c
gcc: numpy/core/src/umath/extobj.c
gcc: numpy/core/src/common/numpyos.c
gcc: numpy/core/src/umath/cpuid.c
gcc: numpy/core/src/common/cblasfuncs.c
gcc: numpy/core/src/common/python_xerbla.c
gcc: numpy/core/src/umath/ufunc_type_resolution.c
gcc: numpy/core/src/umath/override.c
gcc: numpy/core/src/multiarray/mapping.c
gcc: numpy/core/src/multiarray/methods.c
gcc: build/src.linux-x86_64-3.1/numpy/core/src/umath/matmul.c
gcc: build/src.linux-x86_64-3.1/numpy/core/src/umath/clip.c
error: Command "gcc -pthread -B /opt/conda/envs/CAST/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/conda/envs/CAST/include -fPIC -O2 -isystem /opt/conda/envs/CAST/include -fPIC -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DHAVE_CBLAS -DNO_ATLAS_INFO=-1 -Ibuild/src.linux-x86_64-3.1/numpy/core/src/umath -Ibuild/src.linux-x86_64-3.1/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.1/numpy/core/src/common -Inumpy/core/include -Ibuild/src.linux-x86_64-3.1/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/opt/conda/envs/CAST/include/python3.10 -Ibuild/src.linux-x86_64-3.1/numpy/core/src/common -Ibuild/src.linux-x86_64-3.1/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.1/numpy/core/src/common -Ibuild/src.linux-x86_64-3.1/numpy/core/src/npymath -c build/src.linux-x86_64-3.1/numpy/core/src/multiarray/scalartypes.c -o build/temp.linux-x86_64-cpython-310/build/src.linux-x86_64-3.1/numpy/core/src/multiarray/scalartypes.o -MMD -MF build/temp.linux-x86_64-cpython-310/build/src.linux-x86_64-3.1/numpy/core/src/multiarray/scalartypes.o.d" failed with exit status 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for numpy
Running setup.py clean for numpy
error: subprocess-exited-with-error
× python setup.py clean did not run successfully.
│ exit code: 1
╰─> [10 lines of output]
Running from numpy source directory.
`setup.py clean` is not supported, use one of the following instead:
- `git clean -xdf` (cleans all files)
- `git clean -Xdf` (cleans all versioned files, doesn't touch
files that aren't checked into the git repo)
Add `--force` to your command to use it anyway if you must (unsupported).
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed cleaning build dir for numpy
Failed to build numpy
ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
这是因为下载的是python3.10出的问题嘛?
The text was updated successfully, but these errors were encountered:
你好:
为什么我想复现这个论文的时候,安装虚拟环境安装的是3.6的话,我会出现错误如下:
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
Traceback (most recent call last):
File "/opt/conda/envs/CAST/bin/pip", line 6, in
sys.exit(pip.main())
File "/opt/conda/envs/CAST/lib/python3.6/site-packages/pip/init.py", line 249, in main
return command.main(cmd_args)
File "/opt/conda/envs/CAST/lib/python3.6/site-packages/pip/basecommand.py", line 251, in main
timeout=min(5, options.timeout)) as session:
File "/opt/conda/envs/CAST/lib/python3.6/site-packages/pip/basecommand.py", line 69, in _build_session
if options.cache_dir else None
File "/opt/conda/envs/CAST/lib/python3.6/posixpath.py", line 78, in join
a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not int
说的是我有一个文件名是整型的;
是对他进行修改吗?
后续我没有安装python3.10
可以进行到安装依赖项
pip install pandas==1.0.5 gensim==3.5.0 scikit-learn==0.19.1 pycparser==2.18 javalang==0.11.0 tqdm networkx==2.3
然后会报错如下:
......................
......................
前面很长
......................
......................
C compiler: gcc -pthread -B /opt/conda/envs/CAST/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/conda/envs/CAST/include -fPIC -O2 -isystem /opt/conda/envs/CAST/include -fPIC
......................
......................
后面还有
......................
......................
numpy/core/src/multiarray/scalartypes.c.src: In function ‘half_arrtype_hash’:
numpy/core/src/multiarray/scalartypes.c.src:3341:27: error: incompatible type for argument 1 of ‘_Py_HashDouble’
3341 | return _Py_HashDouble(npy_half_to_double(((PyHalfScalarObject *)obj)->obval));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| double
In file included from /opt/conda/envs/CAST/include/python3.10/Python.h:77,
from numpy/core/src/multiarray/scalartypes.c.src:3:
/opt/conda/envs/CAST/include/python3.10/pyhash.h:10:38: note: expected ‘PyObject *’ {aka ‘struct _object *’} but argument is of type ‘double’
10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
| ^~~~~~~~~~
numpy/core/src/multiarray/scalartypes.c.src:3341:12: error: too few arguments to function ‘_Py_HashDouble’
3341 | return _Py_HashDouble(npy_half_to_double(((PyHalfScalarObject *)obj)->obval));
| ^~~~~~~~~~~~~~
In file included from /opt/conda/envs/CAST/include/python3.10/Python.h:77,
from numpy/core/src/multiarray/scalartypes.c.src:3:
/opt/conda/envs/CAST/include/python3.10/pyhash.h:10:23: note: declared here
10 | PyAPI_FUNC(Py_hash_t) _Py_HashDouble(PyObject *, double);
| ^~~~~~~~~~~~~~
gcc: numpy/core/src/multiarray/typeinfo.c
numpy/core/src/multiarray/scalartypes.c.src: In function ‘longdouble_arrtype_hash’:
numpy/core/src/multiarray/scalartypes.c.src:3312:1: warning: control reaches end of non-void function [-Wreturn-type]
3312 | }
| ^
numpy/core/src/multiarray/scalartypes.c.src: In function ‘float_arrtype_hash’:
numpy/core/src/multiarray/scalartypes.c.src:3312:1: warning: control reaches end of non-void function [-Wreturn-type]
3312 | }
| ^
numpy/core/src/multiarray/scalartypes.c.src: In function ‘half_arrtype_hash’:
numpy/core/src/multiarray/scalartypes.c.src:3342:1: warning: control reaches end of non-void function [-Wreturn-type]
3342 | }
| ^
gcc: numpy/core/src/multiarray/vdot.c
gcc: numpy/core/src/multiarray/usertypes.c
gcc: numpy/core/src/umath/umathmodule.c
gcc: numpy/core/src/multiarray/number.c
gcc: build/src.linux-x86_64-3.1/numpy/core/src/umath/loops.c
gcc: numpy/core/src/umath/ufunc_object.c
gcc: numpy/core/src/umath/reduction.c
gcc: build/src.linux-x86_64-3.1/numpy/core/src/multiarray/nditer_templ.c
gcc: build/src.linux-x86_64-3.1/numpy/core/src/umath/scalarmath.c
numpy/core/src/umath/loops.c.src: In function ‘PyUFunc_On_Om’:
numpy/core/src/umath/loops.c.src:506:9: warning: ‘PyEval_CallObjectWithKeywords’ is deprecated [-Wdeprecated-declarations]
506 | result = PyEval_CallObject(tocall, arglist);
| ^~~~~~
In file included from /opt/conda/envs/CAST/include/python3.10/Python.h:130,
from numpy/core/src/umath/loops.c.src:7:
/opt/conda/envs/CAST/include/python3.10/ceval.h:17:43: note: declared here
17 | Py_DEPRECATED(3.9) PyAPI_FUNC(PyObject ) PyEval_CallObjectWithKeywords(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gcc: numpy/core/src/npymath/npy_math.c
gcc: numpy/core/src/multiarray/flagsobject.c
gcc: numpy/core/src/multiarray/getset.c
gcc: build/src.linux-x86_64-3.1/numpy/core/src/npymath/ieee754.c
gcc: build/src.linux-x86_64-3.1/numpy/core/src/npymath/npy_math_complex.c
gcc: numpy/core/src/multiarray/nditer_api.c
gcc: numpy/core/src/npymath/halffloat.c
gcc: numpy/core/src/common/npy_longdouble.c
gcc: numpy/core/src/common/array_assign.c
gcc: numpy/core/src/common/ucsnarrow.c
gcc: numpy/core/src/common/mem_overlap.c
numpy/core/src/common/ucsnarrow.c: In function ‘PyUnicode_FromUCS4’:
numpy/core/src/common/ucsnarrow.c:139:9: warning: ‘PyUnicode_FromUnicode’ is deprecated [-Wdeprecated-declarations]
139 | ret = (PyUnicodeObject )PyUnicode_FromUnicode((Py_UNICODE)buf,
| ^~~
In file included from /opt/conda/envs/CAST/include/python3.10/unicodeobject.h:1046,
from /opt/conda/envs/CAST/include/python3.10/Python.h:83,
from numpy/core/src/common/ucsnarrow.c:4:
/opt/conda/envs/CAST/include/python3.10/cpython/unicodeobject.h:551:42: note: declared here
551 | Py_DEPRECATED(3.3) PyAPI_FUNC(PyObject) PyUnicode_FromUnicode(
| ^~~~~~~~~~~~~~~~~~~~~
gcc: numpy/core/src/common/ufunc_override.c
gcc: numpy/core/src/umath/extobj.c
gcc: numpy/core/src/common/numpyos.c
gcc: numpy/core/src/umath/cpuid.c
gcc: numpy/core/src/common/cblasfuncs.c
gcc: numpy/core/src/common/python_xerbla.c
gcc: numpy/core/src/umath/ufunc_type_resolution.c
gcc: numpy/core/src/umath/override.c
gcc: numpy/core/src/multiarray/mapping.c
gcc: numpy/core/src/multiarray/methods.c
gcc: build/src.linux-x86_64-3.1/numpy/core/src/umath/matmul.c
gcc: build/src.linux-x86_64-3.1/numpy/core/src/umath/clip.c
error: Command "gcc -pthread -B /opt/conda/envs/CAST/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /opt/conda/envs/CAST/include -fPIC -O2 -isystem /opt/conda/envs/CAST/include -fPIC -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DHAVE_CBLAS -DNO_ATLAS_INFO=-1 -Ibuild/src.linux-x86_64-3.1/numpy/core/src/umath -Ibuild/src.linux-x86_64-3.1/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.1/numpy/core/src/common -Inumpy/core/include -Ibuild/src.linux-x86_64-3.1/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/opt/conda/envs/CAST/include/python3.10 -Ibuild/src.linux-x86_64-3.1/numpy/core/src/common -Ibuild/src.linux-x86_64-3.1/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.1/numpy/core/src/common -Ibuild/src.linux-x86_64-3.1/numpy/core/src/npymath -c build/src.linux-x86_64-3.1/numpy/core/src/multiarray/scalartypes.c -o build/temp.linux-x86_64-cpython-310/build/src.linux-x86_64-3.1/numpy/core/src/multiarray/scalartypes.o -MMD -MF build/temp.linux-x86_64-cpython-310/build/src.linux-x86_64-3.1/numpy/core/src/multiarray/scalartypes.o.d" failed with exit status 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
这是因为下载的是python3.10出的问题嘛?
The text was updated successfully, but these errors were encountered: