pkuseg-python
pkuseg-python copied to clipboard
ValueError: 'pkuseg/inference.pyx' doesn't match any files 这个是撒子鬼哦
Lestin-MacBook-Pro:~ lestin.yin$ pip3 install -U pkuseg
Collecting pkuseg
Using cached https://files.pythonhosted.org/packages/a5/83/5c6379ff4737bcd26ee1b5c83f2ae78b76651aa8ab1cd3ae1225329371fe/pkuseg-0.0.14.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/y5/vr8wrq014hqclky244604c_r0000gn/T/pip-install-gekq4gpk/pkuseg/
遇到同样的问题
感谢您的反馈,我们新增加了mac系统的支持。刚刚上传了mac系统的python 3.6版本,您可以重新pip安装使用。mac系统的python 3.7和python 3.5版本支持正在准备中。
@jingjingxupku nice work!!感谢感谢
TF can't work on py3.6+. So please support py3.5🙊
Fedora 23 x86-64 Python3.4.3 pip19.0.2 pip3.4 install pkuseg 0.0.13-0.0.15 都会报
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/a5/83/5c6379ff4737bcd26ee1b5c83f2ae78b76651aa8ab1cd3ae1225329371fe/pkuseg-0.0.14.tar.gz (49.5MB)
100% |████████████████████████████████| 49.5MB 730kB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-0o041v82/pkuseg/setup.py", line 48, in <module>
setup_package()
File "/tmp/pip-install-0o041v82/pkuseg/setup.py", line 42, in setup_package
ext_modules=cythonize(extensions, annotate=True),
File "/usr/lib64/python3.4/site-packages/Cython/Build/Dependencies.py", line 967, in cythonize
aliases=aliases)
File "/usr/lib64/python3.4/site-packages/Cython/Build/Dependencies.py", line 812, in create_extension_list
for file in nonempty(sorted(extended_iglob(filepattern)), "'%s' doesn't match any files" % filepattern):
File "/usr/lib64/python3.4/site-packages/Cython/Build/Dependencies.py", line 111, in nonempty
raise ValueError(error_msg)
ValueError: 'pkuseg/inference.pyx' doesn't match any files
Fedora 23 x86-64 / Python3.5.2 / pip19.0.2 pkuseg 0.0.13-0.0.15
Python 3.5.2 (default, Oct 21 2016, 21:58:07)
[GCC 5.3.1 20160406 (Red Hat 5.3.1-6)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import pkuseg
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python3.5/site-packages/pkuseg/__init__.py", line 14, in <module>
import pkuseg.trainer as trainer
File "/usr/lib64/python3.5/site-packages/pkuseg/trainer.py", line 15, in <module>
from pkuseg.feature_extractor import FeatureExtractor
ImportError: /usr/lib64/python3.5/site-packages/pkuseg/feature_extractor.cpython-35m-x86_64-linux-gnu.so: undefined symbol: PyFPE_jbuf
macOS 上 python 3.7 可以 clone 下来 python3 setup.py build
python3.7遇到同样的错误
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple pkuseg
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting pkuseg
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/20/ab/8d51a1c54840c94b1f30a703f68696d6348632c223a8a9f227ee4900bef8/pkuseg-0.0.16.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\admin\AppData\Local\Temp\pip-install-g1w677oy\pkuseg\
same error with python 37 & mojave
Same error with python3.6.8, what's wrong with it?
能否尽快提供win版本?
win10 64bit
python3.6 macos mojave 依然报错
这个问题什么时候解决?
macOS 10.14.3, python 3.7.2, pip 19.0.2 ValueError: 'pkuseg/inference.pyx' doesn't match any files
感谢大家的反馈,针对此问题,我们对新版本增加了更多系统的支持,目前共支持linux、windows 64、以及mac系统的python 3.5、python 3.6、和python 3.7版本,大家可以pip下载新版本使用。
https://github.com/lancopku/pkuseg-python/issues/69 same question
x86_64 anaconda3-5.3.1 still error
win10 amd64 py3.7 error 'pkuseg/inference.pyx' doesn't match any files
Ubuntu 19.04 Python3 has the same error:
ValueError: 'pkuseg/inference.pyx' doesn't match any files
win10 python 3.7 has the same error
刚刚我看到这个帖子,https://www.cnblogs.com/pythonclass/p/11281607.html,猛的一去看,还真是把文件的扩展名变一下就可以编译安装了,具体方法如下: 1、编辑目录下setup.py: setup_package()中为 [pkuseg/inference.pyx],而目录下文件却是pkuseg/inference.cpp,可修改setup.py中.pyx为.cpp, 2、python setup.py build_ext -i 3、python setup.py install。 注:我已将python更新至python3.8
我刚刚安装了pkuseg。最近的pkuseg 目录下文件是pkuseg/inference.pyk了。 我用:
- Python 3.7
- pip install cython
- pip install -U pkuseg --user pip3 不行。谢谢大家的建议。
English: I recently installed pkuseg. The recent pkuseg package now includes the file pkuseg/inference.pyk, so the suggestion to change the setup.py no longer works.
Here's what I used on MacOS 10.15.2
- Python 3.7
- pip install cython
- pip install -U pkuseg --user Pip3 and python 3.8 did not work.
MacOS 10.15.2 Python 3.8 has same error
See my solution above.
pypi的 pkuseg-0.0.22
tgz中仍然文件名不匹配.
自己clone repo是可以正常安装到本地的, 是不是可以考虑发个新版本到pip.
今天试出一个在python3.8用docker成功安装pkuseg 0.0.25的方法 Dockerfile的前7行改成如下的前7行,在ubuntu上安装pkuseg时能安装成功
(若是把Cython、numpy、pkuseg放到requirements.txt的话, 或者安装packages前没upgrade setuptools的话, 安装到pkuseg 0.0.25似乎都会失败)
FROM python:3.8.8 WORKDIR / COPY . / RUN python -m pip install --upgrade setuptools RUN pip install Cython==0.29.24 RUN pip install numpy==1.19.2 RUN pip install pkuseg==0.0.25
RUN pip install -r requirements.txt ...