python - Cython 安装警告

标签 python cython

我正在尝试在Elementary OS linux上使用pip3.3将Cython安装到python3.3中,并且意外弹出警告(在下面发布)。

pip3.3 install Cython
Downloading/unpacking Cython
  Downloading Cython-0.20.1.tar.gz (2.6MB): 2.6MB downloaded
  Running setup.py (path:/tmp/pip_build_tej/Cython/setup.py) egg_info for package Cython
    /usr/lib/python3.3/distutils/dist.py:258: UserWarning: Unknown distribution option:     'entry_points'
  warnings.warn(msg)
    /usr/lib/python3.3/distutils/dist.py:258: UserWarning: Unknown distribution option: 'zip_safe'
      warnings.warn(msg)
    usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
       or: -c --help [cmd1 cmd2 ...]
       or: -c --help-commands
       or: -c cmd --help

    error: invalid command 'egg_info'
    Complete output from command python setup.py egg_info:
    /usr/lib/python3.3/distutils/dist.py:258: UserWarning: Unknown distribution option: 'entry_points'

  warnings.warn(msg)

/usr/lib/python3.3/distutils/dist.py:258: UserWarning: Unknown distribution option: 'zip_safe'

  warnings.warn(msg)

usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]

   or: -c --help [cmd1 cmd2 ...]

   or: -c --help-commands

   or: -c cmd --help



error: invalid command 'egg_info'

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_tej/Cython
Storing debug log for failure in /tmp/tmpshew0_

请我在这方面需要您的帮助,因为它是我安装其他应用程序和框架的障碍。

最佳答案

sudo pip3 install -U  setuptools 

setuptools和distribute已合并,Setuptools/Distribute Merge

关于python - Cython 安装警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24108128/

相关文章:

python - 我需要在 Cython 中使用 `nogil`

python - Numpy:跨越多 channel 图像

python - cython 不支持按键排序?

python - 为什么列表项的地址相同?

python - 如何将预测作为二进制输出? - Python( tensorflow )

python - 如何高效使用numpy进行迭代求和

cython - 使用 Cython 在不复制的情况下将 malloc 的缓冲区从 C 转换为 Python?

python - plt.plot 分类轴过度拥挤

python - 我想在 python 中将字符串解析为 timestamp-with-timezone

python - 如何以编程方式检查 Kafka Broker 是否已启动并在 Python 中运行