如何将 PyDDE 安装到 Python 3.4 而不是 Python 2.4 [英] How do you install PyDDE to Python 3.4 and not Python 2.4

查看:69
本文介绍了如何将 PyDDE 安装到 Python 3.4 而不是 Python 2.4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在尝试安装 PyDDE 包.

I am currently trying to install the PyDDE package.

进入命令行并运行 pip install PyDDE 最初不起作用,所以我从 下载了 zip 包https://github.com/hensing/PyDDE

Going to the command line and running pip install PyDDE initially didn't work, so I downloaded the zip package from https://github.com/hensing/PyDDE

然后我导航到解压缩的文件夹并使用安装说明中指定的 python setup.py 命令.

and then I navigated to the unzipped folder and used the python setup.py command as specified in the installation instruction.

这在 python 2.7 中安装了 PyDDE 模块,输入 import PyDDE 会生成 2.7 中的模块.但是,它不会在 3.4 中安装.

This installed the PyDDE module in python 2.7, and typing import PyDDE yields the module in 2.7. However, it does not install in 3.4.

我在stackoverflow上发现了这个类似的问题(Python 3.4 和 2.7: 无法为 python 3.4 安装 numpy 包

I found this similar problem on stackoverflow ( Python 3.4 and 2.7: Cannot install numpy package for python 3.4

安装 numpyPython 2.7 同时还安装了 Python 3.4?

它提供了使用 sudo pip 并转到 python 3.4 文件夹并使用 easy_install PyDDE 等解决方案

which provided solutions like using sudo pip and going to the python 3.4 folder and using easy_install PyDDE

因为当我使用它时已经为 python 2.7 安装了:easy_install PyDDE 或pip 安装 PyDDE它高兴地告诉我 pydde 0.2.2 已经安装/活动版本,但是,加载 Python 3.4 并导入 PyDDE 仍然不起作用.我也试过 python34 install PyDDE 但 python34 不是一个可识别的命令.

Since it is already installed for python 2.7 when I use: easy_install PyDDE or pip install PyDDE it happily tells me that pydde 0.2.2 is already installed/the active version, however, loading up Python 3.4 and importing PyDDE still doesn't work. I have also tried python34 install PyDDE but python34 isn't a recognised command.

任何帮助将不胜感激.

推荐答案

需要使用pip3:

pip3 install PyDDE 

pip 安装 python2 包,pip3 安装你的 python3 包.

pip installs python2 packages and pip3 does your python3 packages.

你的pythonpath中需要python3去:

You need python3 in your pythonpath go to:

My Computer/Properties/Advanced System Settings/Environment Variables

并将 C:\Python34\;C:\Python34\Scripts\ 添加到您的 pythonpath.

And add C:\Python34\;C:\Python34\Scripts\ to your pythonpath.

然后下载 get-pip.py 并运行 python34 get-pip.py

这篇关于如何将 PyDDE 安装到 Python 3.4 而不是 Python 2.4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆