运行install_lib警告:install_lib:' build \ lib'不存在 - 没有要安装的Python模块

时间:2014-08-17 08:11:26

标签: python

c:\Python33>python.exe D:\program_python\module_setup\setups.py install
running install
running build
running build_py
running install_lib
**warning: install_lib: 'build\lib' does not exist -- no Python modules to in**


running install_egg_info
Removing c:\Python33\Lib\site-packages\find_elements_of_list-3.3.3-py3.3.eg
o
Writing c:\Python33\Lib\site-packages\find_elements_of_list-3.3.3-py3.3.egg

我收到此错误(以粗体显示)可以建议(当我使用带有python33的窗口8 -32位o / s以及使用带有python 2.6的Red Hat Linux-6时)

c:\Python33>update modules list
'update' is not recognized as an internal or external command,
operable program or batch file.

2 个答案:

答案 0 :(得分:2)

您需要切换到应用程序的目录,然后运行该文件。

c:\Python33>cd D:\program_python\module_setup
c:\Python33>cd D:
D:\program_python\module_setup> C:\Python33\python.exe setup.py install

答案 1 :(得分:0)

我必须做两件事:

  1. 在设置目录中添加__init__.py(可以为空)

    ./main/setup.py
    ./main/setup/__init__.py
    
  2. 安装cmake(如果尚未安装)

    sudo apt-get install cmake