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:
Downgrade the protobuf package to 3.20.x or lower.
Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).
🐛 Bug
**- 윈도우 11
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 !!
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
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:
이때 사용한 명령어는 다음과 같습니다.
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버전으로 변경해 보아도 에러가 계속나는 상황인데, 이 에러를 어떻게 해결할수 있을지 문의드립니다.