最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

I am trying to install pytorch 1.4 with pysyft 0.2.9 in python 3.8 am getting errors - Stack Overflow

programmeradmin4浏览0评论

pip install syft==0.2.9

ERROR: Command errored out with exit status 1: command: /opt/conda/bin/python3.8 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-7ykxboft/av_5df8c604b79643299fcbc84b1211287b/setup.py'"'"'; file='"'"'/tmp/pip-install-7ykxboft/av_5df8c604b79643299fcbc84b1211287b/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-_de5yuro/install-record.txt --single-version-externally-managed --compile --install-headers /opt/conda/include/python3.8/av cwd: /tmp/pip-install-7ykxboft/av_5df8c604b79643299fcbc84b1211287b/ Complete output (50 lines): running install /opt/conda/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running build running build_py creating build creating build/lib.linux-x86_64-3.8 creating build/lib.linux-x86_64-3.8/av copying av/datasets.py -> build/lib.linux-x86_64-3.8/av copying av/deprecation.py -> build/lib.linux-x86_64-3.8/av copying av/main.py -> build/lib.linux-x86_64-3.8/av copying av/init.py -> build/lib.linux-x86_64-3.8/av creating build/lib.linux-x86_64-3.8/av/filter copying av/filter/init.py -> build/lib.linux-x86_64-3.8/av/filter creating build/lib.linux-x86_64-3.8/av/subtitles copying av/subtitles/init.py -> build/lib.linux-x86_64-3.8/av/subtitles creating build/lib.linux-x86_64-3.8/av/codec copying av/codec/init.py -> build/lib.linux-x86_64-3.8/av/codec creating build/lib.linux-x86_64-3.8/av/container copying av/container/init.py -> build/lib.linux-x86_64-3.8/av/container creating build/lib.linux-x86_64-3.8/av/data copying av/data/init.py -> build/lib.linux-x86_64-3.8/av/data creating build/lib.linux-x86_64-3.8/av/video copying av/video/init.py -> build/lib.linux-x86_64-3.8/av/video creating build/lib.linux-x86_64-3.8/av/sidedata copying av/sidedata/init.py -> build/lib.linux-x86_64-3.8/av/sidedata creating build/lib.linux-x86_64-3.8/av/audio copying av/audio/init.py -> build/lib.linux-x86_64-3.8/av/audio running build_ext running config PyAV: 8.1.0 (unknown commit) Python: 3.8.13 | packaged by conda-fe | (default, Mar 25 2022, 06:04:10) \n[GCC 10.3.0] platform: Linux-5.15.0-131-generic-x86_64-with-glibc2.10 extension_extra: include_dirs: [b'include'] libraries: [] library_dirs: [] define_macros: [] runtime_library_dirs: [] config_macros: PYAV_COMMIT_STR="unknown-commit" PYAV_VERSION=8.1.0 PYAV_VERSION_STR="8.1.0" Could not find libavformat with pkg-config. Could not find libavcodec with pkg-config. Could not find libavdevice with pkg-config. Could not find libavutil with pkg-config. Could not find libavfilter with pkg-config. Could not find libswscale with pkg-config. Could not find libswresample with pkg-config. ---------------------------------------- ERROR: Command errored out with exit status 1: /opt/conda/bin/python3.8 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-7ykxboft/av_5df8c604b79643299fcbc84b1211287b/setup.py'"'"'; file='"'"'/tmp/pip-install-7ykxboft/av_5df8c604b79643299fcbc84b1211287b/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-_de5yuro/install-record.txt --single-version-externally-managed --compile --install-headers /opt/conda/include/python3.8/av Check the logsfor full command output.

I already have python 3.8.13

Help please

pip install syft==0.2.9

ERROR: Command errored out with exit status 1: command: /opt/conda/bin/python3.8 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-7ykxboft/av_5df8c604b79643299fcbc84b1211287b/setup.py'"'"'; file='"'"'/tmp/pip-install-7ykxboft/av_5df8c604b79643299fcbc84b1211287b/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-_de5yuro/install-record.txt --single-version-externally-managed --compile --install-headers /opt/conda/include/python3.8/av cwd: /tmp/pip-install-7ykxboft/av_5df8c604b79643299fcbc84b1211287b/ Complete output (50 lines): running install /opt/conda/lib/python3.8/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running build running build_py creating build creating build/lib.linux-x86_64-3.8 creating build/lib.linux-x86_64-3.8/av copying av/datasets.py -> build/lib.linux-x86_64-3.8/av copying av/deprecation.py -> build/lib.linux-x86_64-3.8/av copying av/main.py -> build/lib.linux-x86_64-3.8/av copying av/init.py -> build/lib.linux-x86_64-3.8/av creating build/lib.linux-x86_64-3.8/av/filter copying av/filter/init.py -> build/lib.linux-x86_64-3.8/av/filter creating build/lib.linux-x86_64-3.8/av/subtitles copying av/subtitles/init.py -> build/lib.linux-x86_64-3.8/av/subtitles creating build/lib.linux-x86_64-3.8/av/codec copying av/codec/init.py -> build/lib.linux-x86_64-3.8/av/codec creating build/lib.linux-x86_64-3.8/av/container copying av/container/init.py -> build/lib.linux-x86_64-3.8/av/container creating build/lib.linux-x86_64-3.8/av/data copying av/data/init.py -> build/lib.linux-x86_64-3.8/av/data creating build/lib.linux-x86_64-3.8/av/video copying av/video/init.py -> build/lib.linux-x86_64-3.8/av/video creating build/lib.linux-x86_64-3.8/av/sidedata copying av/sidedata/init.py -> build/lib.linux-x86_64-3.8/av/sidedata creating build/lib.linux-x86_64-3.8/av/audio copying av/audio/init.py -> build/lib.linux-x86_64-3.8/av/audio running build_ext running config PyAV: 8.1.0 (unknown commit) Python: 3.8.13 | packaged by conda-fe | (default, Mar 25 2022, 06:04:10) \n[GCC 10.3.0] platform: Linux-5.15.0-131-generic-x86_64-with-glibc2.10 extension_extra: include_dirs: [b'include'] libraries: [] library_dirs: [] define_macros: [] runtime_library_dirs: [] config_macros: PYAV_COMMIT_STR="unknown-commit" PYAV_VERSION=8.1.0 PYAV_VERSION_STR="8.1.0" Could not find libavformat with pkg-config. Could not find libavcodec with pkg-config. Could not find libavdevice with pkg-config. Could not find libavutil with pkg-config. Could not find libavfilter with pkg-config. Could not find libswscale with pkg-config. Could not find libswresample with pkg-config. ---------------------------------------- ERROR: Command errored out with exit status 1: /opt/conda/bin/python3.8 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-7ykxboft/av_5df8c604b79643299fcbc84b1211287b/setup.py'"'"'; file='"'"'/tmp/pip-install-7ykxboft/av_5df8c604b79643299fcbc84b1211287b/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-_de5yuro/install-record.txt --single-version-externally-managed --compile --install-headers /opt/conda/include/python3.8/av Check the logsfor full command output.

I already have python 3.8.13

Help please

Share asked 10 hours ago maxmax 1 New contributor max is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct. 1
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Bot Commented 10 hours ago
Add a comment  | 

1 Answer 1

Reset to default 0

You are trying to install syft 0.2.9 in Python 3.8 through pip. According to the Pypi page of syft 0.2.9, you should:

  1. Follow the pre-installation steps:
    conda create -n pysyft python=3.7
    conda activate pysyft
    conda install jupyter notebook==5.7.8 tornado==4.5.3
    
  2. Not use syft 0.2.9 with Python 3.8, as they don't seem compatible:

    Note: Use Python 3.6-3.7. Tensorflow does not support Python 3.8 hence it might lead to installation errors.

If after those two fixes it still doesn't work, you can add more details to your question

发布评论

评论列表(0)

  1. 暂无评论