Closed Chen1997237 closed 1 year ago
Hi, it looks like you don't have gcc installed. That compiler is needed for installing some of pycortex cythonized code.
thanks for the quick reply! and I have successfully solved this problem after I installed gcc!
and here is my solution:
Hello! When I install Pycortex on Ubuntu 18.04 OS with python 3.11.4, I got an error, even after I have upgrading all the requirements as per documentation. I tried to install directly from PyPI and cloning and installing the last version locally. I also tried to install without pip, but ending with the same issue. I see there might be an issue with GCC, are we missing some non-pythonic requirements for this install? and I also have install Pycortex on my MAC (macOS 13.4.1 ), but I got the same error
Here's the full `pip` log for completeness
``` (VM) jupyter@task_3070_chenfeipeng:~/workspace/LanguageModeling/voxelwise_tutorials$ pip install -U pycortex DEPRECATION: Loading egg at /home/jupyter/miniforge3/envs/VM/lib/python3.11/site-packages/huggingface_hub-0.16.4-py3.8.egg is deprecated. pip 23.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. DEPRECATION: Loading egg at /home/jupyter/miniforge3/envs/VM/lib/python3.11/site-packages/sacremoses-0.0.43-py3.8.egg is deprecated. pip 23.3 will enforce this behaviour change. A possible replacement is to use pip for package installation.. Looking in indexes: https://mirrors.bfsu.edu.cn/pypi/web/simple Collecting pycortex Using cached https://mirrors.bfsu.edu.cn/pypi/web/packages/fa/1f/ae15051fd5c7dfd54b2796996e8332b23513d2eab46d9def95f44a45022a/pycortex-1.2.7.tar.gz (37.2 MB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Collecting future (from pycortex) Using cached future-0.18.3-py3-none-any.whl Requirement already satisfied: numpy in /home/jupyter/miniforge3/envs/VM/lib/python3.11/site-packages (from pycortex) (1.25.2) Requirement already satisfied: scipy in /home/jupyter/miniforge3/envs/VM/lib/python3.11/site-packages (from pycortex) (1.11.1) Requirement already satisfied: tornado>=4.3 in /home/jupyter/miniforge3/envs/VM/lib/python3.11/site-packages (from pycortex) (6.3.2) Collecting shapely (from pycortex) Using cached https://mirrors.bfsu.edu.cn/pypi/web/packages/04/67/05e96af1c4ee130e12ac228da1ab86f7581809d8f008aa3a9ec19ea22eb2/shapely-2.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.3 MB) Requirement already satisfied: lxml in /home/jupyter/miniforge3/envs/VM/lib/python3.11/site-packages (from pycortex) (4.9.3) Collecting html5lib (from pycortex) Using cached https://mirrors.bfsu.edu.cn/pypi/web/packages/6c/dd/a834df6482147d48e225a49515aabc28974ad5a4ca3215c18a882565b028/html5lib-1.1-py2.py3-none-any.whl (112 kB) Collecting h5py (from pycortex) Using cached https://mirrors.bfsu.edu.cn/pypi/web/packages/a7/d9/ac660616671e30d70c091e46ed4fdc50df48ca79b1ac99df5499a45de128/h5py-3.9.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.8 MB) Collecting numexpr (from pycortex) Using cached https://mirrors.bfsu.edu.cn/pypi/web/packages/f4/fd/dcc3664f5e0c8f4ffbcf20a3e8db6ecb265b409c0fddd77baa0009fa4fec/numexpr-2.8.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (385 kB) Collecting cython<3.0 (from pycortex) Using cached https://mirrors.bfsu.edu.cn/pypi/web/packages/43/c9/4c8a84731c0948b408d059c2c17c95cbb8b9c2baefe1c6985c0b29a9055e/Cython-0.29.36-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (1.9 MB) Requirement already satisfied: matplotlib in /home/jupyter/miniforge3/envs/VM/lib/python3.11/site-packages (from pycortex) (3.7.2) Requirement already satisfied: pillow in /home/jupyter/miniforge3/envs/VM/lib/python3.11/site-packages (from pycortex) (10.0.0) Requirement already satisfied: nibabel>=2.1 in /home/jupyter/miniforge3/envs/VM/lib/python3.11/site-packages (from pycortex) (5.1.0) Requirement already satisfied: networkx>=2.1 in /home/jupyter/miniforge3/envs/VM/lib/python3.11/site-packages (from pycortex) (3.1) Collecting imageio (from pycortex) Using cached https://mirrors.bfsu.edu.cn/pypi/web/packages/c7/b0/7b6c35b8636ed773325cdb6f5ac3cd36afba63d99e20ed59c521cf5018b4/imageio-2.31.1-py3-none-any.whl (313 kB) Collecting wget (from pycortex) Using cached wget-3.2-py3-none-any.whl Requirement already satisfied: packaging>=17 in /home/jupyter/miniforge3/envs/VM/lib/python3.11/site-packages (from nibabel>=2.1->pycortex) (23.1) Requirement already satisfied: six>=1.9 in /home/jupyter/miniforge3/envs/VM/lib/python3.11/site-packages (from html5lib->pycortex) (1.16.0) Requirement already satisfied: webencodings in /home/jupyter/miniforge3/envs/VM/lib/python3.11/site-packages (from html5lib->pycortex) (0.5.1) Requirement already satisfied: contourpy>=1.0.1 in /home/jupyter/miniforge3/envs/VM/lib/python3.11/site-packages (from matplotlib->pycortex) (1.1.0) Requirement already satisfied: cycler>=0.10 in /home/jupyter/miniforge3/envs/VM/lib/python3.11/site-packages (from matplotlib->pycortex) (0.11.0) Requirement already satisfied: fonttools>=4.22.0 in /home/jupyter/miniforge3/envs/VM/lib/python3.11/site-packages (from matplotlib->pycortex) (4.42.0) Requirement already satisfied: kiwisolver>=1.0.1 in /home/jupyter/miniforge3/envs/VM/lib/python3.11/site-packages (from matplotlib->pycortex) (1.4.4) Requirement already satisfied: pyparsing<3.1,>=2.3.1 in /home/jupyter/miniforge3/envs/VM/lib/python3.11/site-packages (from matplotlib->pycortex) (3.0.9) Requirement already satisfied: python-dateutil>=2.7 in /home/jupyter/miniforge3/envs/VM/lib/python3.11/site-packages (from matplotlib->pycortex) (2.8.2) Building wheels for collected packages: pycortex Building wheel for pycortex (pyproject.toml) ... error error: subprocess-exited-with-error × Building wheel for pycortex (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [585 lines of output]