Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

파이썬 설치 오류 2가지 문의(fastcache, tensorflow) #100

Open
redrpm opened this issue Apr 22, 2023 · 0 comments
Open

파이썬 설치 오류 2가지 문의(fastcache, tensorflow) #100

redrpm opened this issue Apr 22, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@redrpm
Copy link

redrpm commented Apr 22, 2023

🐛 Bug

**- 윈도우 11

  • 파이썬 3.7.0 버전 설치됨
  • tensorflow 2.2.0 버전 설치됨
  • 문의1: pip install fastcache 시 아래 에러 발생**

WARNING: Ignoring invalid distribution -rotobuf (c:\users\home\appdata\local\programs\python\python37\lib\site-packages)
Collecting fastcache
Using cached fastcache-1.1.0.tar.gz (20 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: fastcache
Building wheel for fastcache (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [31 lines of output]
c:\users\home\appdata\local\programs\python\python37\lib\site-packages\setuptools\dist.py:755: SetuptoolsDeprecationWarning: Invalid dash-separated options
!!

          ********************************************************************************
          Usage of dash-separated 'description-file' will not be supported in future
          versions. Please use the underscore name 'description_file' instead.

          By 2023-Sep-26, you need to update your project and remove deprecated calls
          or your builds will no longer be supported.

          See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
          ********************************************************************************

  !!
    opt = self.warn_dash_deprecation(opt, section)
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-cpython-37
  creating build\lib.win-amd64-cpython-37\fastcache
  copying fastcache\benchmark.py -> build\lib.win-amd64-cpython-37\fastcache
  copying fastcache\__init__.py -> build\lib.win-amd64-cpython-37\fastcache
  creating build\lib.win-amd64-cpython-37\fastcache\tests
  copying fastcache\tests\test_clrucache.py -> build\lib.win-amd64-cpython-37\fastcache\tests
  copying fastcache\tests\test_functools.py -> build\lib.win-amd64-cpython-37\fastcache\tests
  copying fastcache\tests\test_thread.py -> build\lib.win-amd64-cpython-37\fastcache\tests
  copying fastcache\tests\__init__.py -> build\lib.win-amd64-cpython-37\fastcache\tests
  running build_ext
  building 'fastcache._lrucache' extension
  error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for fastcache
Running setup.py clean for fastcache
Failed to build fastcache
ERROR: Could not build wheels for fastcache, which is required to install pyproject.toml-based projects

  • 문의2: pip install fastcache 시 아래 에러 발생
    이미 Tensorflow 2.2.0이 설치되어 있는 상황에서 쥬피터 노트북에서
    import tensorflow as tf 를 치면 아래와 같은 에러가 발생함.
    이에 따라, protobuf를 3.20.1 버전과 3.19.0 버전 등으로 변경해도 에러가 계속 발생함.

TypeError: Descriptors cannot not be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:

  1. Downgrade the protobuf package to 3.20.x or lower.
  2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

이때 사용한 명령어는 다음과 같습니다.

pip uninstall protobuf
pip install protobuf==3.20.1

pip uninstall protobuf
pip install protobuf==3.19.0

그리고 Tensorflow 버전 자체를 "pip install tensorflow==2.5.0" 를 통해
2.5.0버전으로 변경해 보아도 에러가 계속나는 상황인데, 이 에러를 어떻게
해결할수 있을지 문의드립니다.

@redrpm redrpm added the bug Something isn't working label Apr 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant