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

python - Failed building wheel for pycosat error while pip installing - Stack Overflow

programmeradmin2浏览0评论

I am trying to pip install in Kaggle notebook. I first upgraded python version because the thing I am trying to install needs python 3.11. i did this using

!apt-get install python3.11
!sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1
!sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 2

Then when I tried !pip install i got the following error:

Building wheels for collected packages: pycosat
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> See above for output.
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  Building wheel for pycosat (setup.py) ... error
  ERROR: Failed building wheel for pycosat
  Running setup.py clean for pycosat
Failed to build pycosat
ERROR: Failed to build installable wheels for some pyproject.toml based projects (pycosat)

I can simply install this in google colab but I need to utilize the GPU in Kaggle so can someone please help

I tried reinstalling pip and upgrading it but it still did not fix it.

发布评论

评论列表(0)

  1. 暂无评论