当前位置: 首页 > 工具软件 > IronPython > 使用案例 >

ironpython安装包_安装Python包 – IronPython

祁彬
2023-12-01

我想将PRAW包添加到VS中的IronPython解决方案中,但它确实是一个痛苦的屁股.这是我正在采取的步骤

>右键单击IronPython Environment,选择install python package.

>使用pip键入“Praw”

>我得到一个提示告诉我pip需要安装.

然后我看到以下内容:

Installing 'pip' package manager.

Downloading distribute from https://go.microsoft.com/fwlink/?LinkID=306663

Installing from distribute-0.6.45

Before install bootstrap.

Scanning installed packages

Setuptools installation detected at c:\program files (x86)\ironpython 2.7\lib\site-packages\setuptools-0.6c11-py2.7.egg

Egg installation

Already patched.

running install

Traceback (most recent call last):

File "setup.py", line 147, in

File "C:\Program Files (x86)\IronPython 2.7\Lib\distutils\core.py", line 151, in setup

File "C:\Program Files (x86)\IronPython 2.7\Lib\distutils\dist.py", line 952, in run_commands

File "C:\Program Files (x86)\IronPython 2.7\Lib\distutils\dist.py", line 971, in run_command

File "c:\users\mj\appdata\local\temp\ptvs-9jvsvw-pip_downloader\distribute-0.6.45\setuptools\command\install.py", line 63, in run

AttributeError: 'module' object has no attribute '_getframe'Traceback (most recent call last):

File "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Microsoft\Python Tools for Visual Studio\2.0\pip_downloader.py", line 47, in

File "C:\Program Files (x86)\IronPython 2.7\Lib\subprocess.py", line 512, in check_call

subprocess.CalledProcessError: Command '['C:\\Program Files (x86)\\IronPython 2.7\\ipy64.exe', 'setup.py', 'install']' returned non-zero exit status 1

'pip' failed to install. Exit code: 1

导致安装失败的原因是:AttributeError:’module’对象没有属性’_getframe’Traceback(最近一次调用last):

我该如何解决这个问题?有没有办法以不同的方式安装pip和ironpython?有没有办法安装包/库不必使用pip?我可以通过Pip for python 2.7安装好的软件包.

 类似资料: