2

I am currently trying to install the PyDDE package.

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

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

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.

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

Installing numpy for Python 2.7 while also having Python 3.4 installed?

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

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.

Any help would be appreciated.

Community
  • 1
  • 1
user1745691
  • 305
  • 2
  • 5
  • 12

1 Answers1

1

You need to use pip3:

pip3 install PyDDE 

pip installs python2 packages and pip3 does your python3 packages.

You need python3 in your pythonpath go to:

My Computer/Properties/Advanced System Settings/Environment Variables

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

Then download get-pip.py and run python34 get-pip.py

Padraic Cunningham
  • 176,452
  • 29
  • 245
  • 321
  • It doesn't seem to work for me - I ge back 'pip3' is not recognised as an internal or external operable program or batch file – user1745691 Mar 22 '15 at 19:50
  • 1
    so you are on windows? Have you added python3 to your environment variables? You need `"C:\Python34\;C:\Python34\Scripts\"` in there – Padraic Cunningham Mar 22 '15 at 19:50
  • 1
    `My Computer /Properties /Advanced System Settings /Environment Variables ` – Padraic Cunningham Mar 22 '15 at 19:53
  • Thanks for the reply but still not getting any joy getting it to work: I've navigated to the environment variables and where it used to say: C:\Users\Simon\Anaconda;C:\Users\Simon\Anaconda\Scripts;C:\Program Files (x86)\SSH Communications Security\SSH Secure Shell it now says: C:\Users\Simon\Anaconda;C:\Users\Simon\Anaconda\Scripts;C:\Program Files (x86)\SSH Communications Security\SSH Secure Shell;C:\Python34\;C:\Python34\Scripts I've tried pip3 install PyDDE and pip3 is not a recognised... and yes, python34 is c:\Python34 – user1745691 Mar 22 '15 at 20:05
  • 1
    have you installed pip as suggested in the edit to my answer? You may also need to logout and in after adding the path – Padraic Cunningham Mar 22 '15 at 20:06
  • for the last part - run python34 get-pip.py, I presume I navigate to the folder where I downloaded get-pip.py and type in python get-pip.py? If so python34 is still not recognised – user1745691 Mar 22 '15 at 20:27
  • 1
    If you added the path to your pythonpath correctly you can run python3 from anywhere, just make sure you log out and in. – Padraic Cunningham Mar 22 '15 at 20:28
  • 1
    you have actually installed python3.4 and see the python34 folder in C: yes? – Padraic Cunningham Mar 22 '15 at 20:29
  • Yes, python 3.4 is installed and the folder is in C: as c:/Python34 – user1745691 Mar 22 '15 at 20:32
  • 1
    so when you go in the folder you can run python34? – Padraic Cunningham Mar 22 '15 at 20:51
  • Yes, on the command line, if I go to c:\Python34 and then type Python, Python 3.4.3 runs. However it does not seem to run anywhere else by typing python34. – user1745691 Mar 22 '15 at 20:56
  • 1
    then your path is not correct, did you logout and in? – Padraic Cunningham Mar 22 '15 at 20:57
  • I did - its not solved but in the meantime I have got it working on a college Mac, but thanks for your help. – user1745691 Mar 22 '15 at 22:08