note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cchardet
error: subprocess-exited-with-error
Running setup.py install for cchardet did not run successfully.
exit code: 1
[15 lines of output]
running install
D:\Program Files\PyCharm 2022.1.1\PythonProjects\venv\lib\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.win-amd64-cpython-310
creating build\lib.win-amd64-cpython-310\cchardet
copying src\cchardet\version.py -> build\lib.win-amd64-cpython-310\cchardet
copying src\cchardet__init__.py -> build\lib.win-amd64-cpython-310\cchardet
warning: build_py: byte-compiling is disabled, skipping.
این ارور رو در هنگام نصب آخرین پکیج دارم چه باید انجام بدم Collecting tehran-stocks==1.0.9 Using cached tehran_stocks-1.0.9-py3-none-any.whl (14 kB) Collecting jalali-pandas<0.3.0,>=0.2.0 Using cached jalali_pandas-0.2.2-py3-none-any.whl (17 kB) Collecting PyYAML<7.0,>=6.0 Using cached PyYAML-6.0-cp310-cp310-win_amd64.whl (151 kB) Requirement already satisfied: SQLAlchemy<2.0.0,>=1.4.28 in d:\program files\pycharm 2022.1.1\pythonprojects\venv\lib\site-packages (from tehran-stocks==1.0.9) (1.4.39) Requirement already satisfied: pandas<2.0.0,>=1.3.5 in d:\program files\pycharm 2022.1.1\pythonprojects\venv\lib\site-packages (from tehran-stocks==1.0.9) (1.4.3) Collecting lxml<5.0.0,>=4.8.0 Using cached lxml-4.9.1-cp310-cp310-win_amd64.whl (3.6 MB) Collecting aiodns<4.0.0,>=3.0.0 Using cached aiodns-3.0.0-py3-none-any.whl (5.0 kB) Collecting requests<3.0.0,>=2.26.0 Using cached requests-2.28.1-py3-none-any.whl (62 kB) Collecting aiohttp<4.0.0,>=3.8.1 Using cached aiohttp-3.8.1-cp310-cp310-win_amd64.whl (555 kB) Collecting cchardet<3.0.0,>=2.1.7 Using cached cchardet-2.1.7.tar.gz (653 kB) Preparing metadata (setup.py): started Preparing metadata (setup.py): finished with status 'done' Collecting pycares>=4.0.0 Using cached pycares-4.2.1-cp310-cp310-win_amd64.whl (84 kB) Collecting aiosignal>=1.1.2 Using cached aiosignal-1.2.0-py3-none-any.whl (8.2 kB) Collecting yarl<2.0,>=1.0 Using cached yarl-1.7.2-cp310-cp310-win_amd64.whl (122 kB) Collecting frozenlist>=1.1.1 Using cached frozenlist-1.3.0-cp310-cp310-win_amd64.whl (33 kB) Collecting charset-normalizer<3.0,>=2.0 Using cached charset_normalizer-2.1.0-py3-none-any.whl (39 kB) Collecting attrs>=17.3.0 Using cached attrs-22.1.0-py2.py3-none-any.whl (58 kB) Collecting multidict<7.0,>=4.5 Using cached multidict-6.0.2-cp310-cp310-win_amd64.whl (27 kB) Collecting async-timeout<5.0,>=4.0.0a3 Using cached async_timeout-4.0.2-py3-none-any.whl (5.8 kB) Collecting jdatetime<4.0.0,>=3.6.4 Using cached jdatetime-3.8.2-py3-none-any.whl (13 kB) Requirement already satisfied: python-dateutil>=2.8.1 in d:\program files\pycharm 2022.1.1\pythonprojects\venv\lib\site-packages (from pandas<2.0.0,>=1.3.5->tehran-stocks==1.0.9) (2.8.2) Requirement already satisfied: numpy>=1.21.0 in d:\program files\pycharm 2022.1.1\pythonprojects\venv\lib\site-packages (from pandas<2.0.0,>=1.3.5->tehran-stocks==1.0.9) (1.23.1) Requirement already satisfied: pytz>=2020.1 in d:\program files\pycharm 2022.1.1\pythonprojects\venv\lib\site-packages (from pandas<2.0.0,>=1.3.5->tehran-stocks==1.0.9) (2022.1) Collecting idna<4,>=2.5 Using cached idna-3.3-py3-none-any.whl (61 kB) Collecting urllib3<1.27,>=1.21.1 Using cached urllib3-1.26.11-py2.py3-none-any.whl (139 kB) Collecting certifi>=2017.4.17 Using cached certifi-2022.6.15-py3-none-any.whl (160 kB) Requirement already satisfied: greenlet!=0.4.17 in d:\program files\pycharm 2022.1.1\pythonprojects\venv\lib\site-packages (from SQLAlchemy<2.0.0,>=1.4.28->tehran-stocks==1.0.9) (1.1.2) Collecting cffi>=1.5.0 Using cached cffi-1.15.1-cp310-cp310-win_amd64.whl (179 kB) Requirement already satisfied: six>=1.5 in d:\program files\pycharm 2022.1.1\pythonprojects\venv\lib\site-packages (from python-dateutil>=2.8.1->pandas<2.0.0,>=1.3.5->tehran-stocks==1.0.9) (1.16.0) Collecting pycparser Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB) Building wheels for collected packages: cchardet Building wheel for cchardet (setup.py): started Building wheel for cchardet (setup.py): finished with status 'error' Running setup.py clean for cchardet Failed to build cchardet Installing collected packages: jdatetime, cchardet, urllib3, PyYAML, pycparser, multidict, lxml, jalali-pandas, idna, frozenlist, charset-normalizer, certifi, attrs, async-timeout, yarl, requests, cffi, aiosignal, pycares, aiohttp, aiodns, tehran-stocks Attempting uninstall: jdatetime Found existing installation: jdatetime 4.1.0 Uninstalling jdatetime-4.1.0: Successfully uninstalled jdatetime-4.1.0 Running setup.py install for cchardet: started Running setup.py install for cchardet: finished with status 'error'
error: subprocess-exited-with-error
python setup.py bdist_wheel did not run successfully. exit code: 1
[13 lines of output] running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-cpython-310 creating build\lib.win-amd64-cpython-310\cchardet copying src\cchardet\version.py -> build\lib.win-amd64-cpython-310\cchardet copying src\cchardet__init__.py -> build\lib.win-amd64-cpython-310\cchardet warning: build_py: byte-compiling is disabled, skipping.
running build_ext building 'cchardet._cchardet' 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 cchardet error: subprocess-exited-with-error
Running setup.py install for cchardet did not run successfully. exit code: 1
[15 lines of output] running install D:\Program Files\PyCharm 2022.1.1\PythonProjects\venv\lib\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.win-amd64-cpython-310 creating build\lib.win-amd64-cpython-310\cchardet copying src\cchardet\version.py -> build\lib.win-amd64-cpython-310\cchardet copying src\cchardet__init__.py -> build\lib.win-amd64-cpython-310\cchardet warning: build_py: byte-compiling is disabled, skipping.
running build_ext building 'cchardet._cchardet' 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: legacy-install-failure
Encountered error while trying to install package.
cchardet
note: This is an issue with the package mentioned above, not pip. hint: See above for output from the failure.