mirror of
https://github.com/deepseek-ai/Janus.git
synced 2026-11-05 00:57:18 +00:00
[GH-ISSUE #62] 编译``sentencepiece``失败 #48
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/Janus#48
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nuclearrockstone on GitHub (Jan 28, 2025).
Original GitHub issue: https://github.com/deepseek-ai/Janus/issues/62
编译
sentencepiece失败运行
pip install -e .正常运行
pip install -e .[gradio]失败,报错信息如下:系统信息:
运行Grdio界面正常,图生文和文生图都正常,请问这属于正常问题吗?
@VitorVillarino commented on GitHub (Jan 28, 2025):
Same issue here
Ubuntu 22.04
@Escannnor commented on GitHub (Jan 28, 2025):
Update me when it's safe to start using it and when I can use the code on
my laptop.
On Tue, Jan 28, 2025, 1:03 PM VitorVillarino @.***>
wrote:
@sh1un commented on GitHub (Jan 28, 2025):
I'm having the same issue running
pip install -e .[gradio](MacBook Pro M3 Pro, python3.11)
@haguliyev commented on GitHub (Jan 28, 2025):
had the same issue, downgraded my Python version to 3.8 and it worked
@meipeter commented on GitHub (Jan 28, 2025):
same issue,but py3.8 didn't work
@luisalbertofer commented on GitHub (Jan 28, 2025):
Are you referring to Python 3.8, released in 2019 and no longer supported since October 2024?
@meipeter commented on GitHub (Jan 28, 2025):
yes
@haguliyev commented on GitHub (Jan 28, 2025):
yes, the version 3.8.10 released in 2021 to be specific.
@flobeier commented on GitHub (Jan 28, 2025):
I'm using a Python 3.12 virtual environment on Ubuntu 24.10 and don't have this issue.
@haguliyev commented on GitHub (Jan 28, 2025):
I've actually performed a clean install to downgrade, maybe that had more impact than the version.
@flobeier commented on GitHub (Jan 28, 2025):
I suggest using a virtual environment (
python3 -m venv .venv). This avoids conflicts with existing python packages and keeps your system clean.@MurphySongAI commented on GitHub (Jan 28, 2025):
I had same problem on Mac, finally use some tricks to solve this:
brew install protobuf sentencepiece pkg-config cmakeupdate your pip and change the SentencePiece==0.2 in pyproject.toml
I have a fork to run on mac here: https://github.com/takahirosir/Janus
Here's the discussion: https://github.com/deepseek-ai/Janus/issues/55
@deepsingh132 commented on GitHub (Jan 28, 2025):
Maybe unrelated but i had the same issue and an answer on StackOverflow suggested to install cmake and pkg-config which surprisingly fixed it.
@feroooooo commented on GitHub (Jan 29, 2025):
Same problem. python 3.12 on windows 11.
@VitorVillarino commented on GitHub (Jan 29, 2025):
This worked! Thanks!
@ItsBlunty commented on GitHub (Jan 29, 2025):
I spent an hour trying to get past this on WSL. I tried installing every one of the listed packages.
What worked for me was making a new venv of Python 3.8, and then right after that, running pip install -e .[gradio]
python3.8 -m venv Janus_envsource Janus_env/bin/activatepip install -e .[gradio]@feroooooo commented on GitHub (Jan 29, 2025):
It works on windows11, python3.12.8 too, just change the SentencePiece version in pyproject.toml is enough. thanks!
@nkpatnis commented on GitHub (Jan 29, 2025):
this fixes the issue
@jrnjsyx commented on GitHub (Jan 30, 2025):
i use python3.9, and it works. 3.8 and 3.11 don't work.
@spaceserfer commented on GitHub (Feb 1, 2025):
this solution worked
https://github.com/deepseek-ai/Janus/issues/84#issuecomment-2621702350
@lionelschiepers commented on GitHub (Feb 5, 2025):
Hi guys,
I didn't manage to run this command on windows with python 3.13 but it works with python 3.12.9 and adapting SentencePiece==0.2 in pyproject.toml
C:\Users\XXX\AppData\Local\Programs\Python\Python312\python -m venv .env312
.env312\Scripts\activate
pip install -e .
pip install -e .[gradio]
@mrssz commented on GitHub (Apr 28, 2025):
python3.13也遇到了同样问题,换成python3.12它就可以了
I also encountered this problem with python 3.13, but it no longer exists when I switch to python 3.12