Python Forum
[split] adding 3rd party libs
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] adding 3rd party libs
#1
Hello Big Grin 

I need to put some modules in python 3.4, my os is win 7. How would I do that? One of the modules I need is pyperclip

Thank You
Blue Dog Huh
Reply
#2
It depends on what operating system you are using. 
You can get it from
https://pypi.python.org/pypi/pyperclip

if your on linux you can get it from your distros repo

Output:
metulburr@ubuntu:~$ sudo apt-cache search pyperclip python-pyperclip - Cross-platform clipboard module for Python python3-pyperclip - Cross-platform clipboard module for Python3
You can also use pip to install 3rd party libs

EDIT:
Quote:my os is win 7
Doh
Recommended Tutorials:
Reply
#3
I can't even run python from my cmd prompt.

See photo:

[Image: python.jpg]

I would like to be able to run python from the cmd prompt.
I hope some one can help.
Reply
#4
Is python installed?

1. see if python has been installed (C:\python35
    o If it's there and you can't execute from command line using 'python' or 'python3'
    that means it's not in you path.

        If it runs, quit from python back to command line and run 'pip install paperclip'

        If not you have two choices:
           1. add to path from control panel-->system-->advanced-->environment variables BUT
               DO NOT DO THIS UNLESS YOU KNOW HOW!!! You cam really muck up your system if
               not done correctly.

            2. A very safe way
                    o Uninstall python 3.5
                    o Re-install paying attention to all offered options, making sure you select the add to path option.
Reply
#5
I have two IDE for python, so I know I have the path set, they both work. I have VS Express 2013 and Sublime text 3. I put the path for python 3.5 in it. I just check and here it is: C:\mingw\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Skype\Phone\;C:\Program Files (x86)\OpenSSH\bin;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files\Microsoft SQL Server\120\Tools\Binn\;C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\ , "C:\Users\renny and kite\AppData\Local\Programs\Python\Python35\python.exe" I all so have 2.7 installed, could that make some type of a problem?

Thank you for your help
Blue Dog
Reply
#6
Uninstall an do a new installation.
Follow this.
So make better location eg C:\Python35.
Make sure that that Add to Path and pip is marked.
Restart.
Now it should like this in cmd(35 for you)
C:\Windows\System32>cd\
C:\>python
Python 3.4.2 (v3.4.2:ab2c023a9432, Oct  6 2014, 22:15:05) [MSC v.1600 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()

C:\>pip -V
pip 8.1.2 from c:\python34\lib\site-packages (python 3.4)
C:\>
If pip is not 8.1.2,upgrade it.
python -m pip install --upgrade pip
Next install cmder for a better shell.

Test that pip work:
λ pip install requests
Collecting requests
  Using cached requests-2.11.1-py2.py3-none-any.whl
Installing collected packages: requests
Successfully installed requests-2.11.1
Reply
#7
Ok will do that.
Thank you
Blue Dog
Reply
#8
Well, I did what you said to do and this is what happen:


[Image: requests_install.jpg]

I can install things now Big Grin  Thank you so much.
Blue Dog Tongue
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Running 3rd party libs on Steam Deck (Arch Linux) with restricted access metulburr 0 1,838 Jan-07-2023, 10:41 PM
Last Post: metulburr
  Avoid third party functions to wrote my python code into system debug-log? mark 9 2,197 Apr-09-2022, 08:41 PM
Last Post: mark
  How to use a function from third party library? rrowhe4d 2 1,854 Aug-31-2021, 04:30 PM
Last Post: Larz60+
  Did interpreter 'compile' all import modules(from thrid-party) jamesyuan 10 4,279 Oct-19-2020, 10:49 AM
Last Post: jamesyuan
  installing third-party modules shabux 5 3,427 Apr-13-2020, 12:41 AM
Last Post: Larz60+
  How can I use CRC libs in python? blodht 0 1,647 Feb-03-2020, 10:26 PM
Last Post: blodht
  Mad Libs Program theguywithcurls 10 5,034 Nov-17-2019, 12:36 AM
Last Post: theguywithcurls
  Adding markers to Folium map only adding last element. tantony 0 2,121 Oct-16-2019, 03:28 PM
Last Post: tantony
  How to detect third party packages used in the code SriRajesh 5 2,964 Sep-21-2019, 05:59 AM
Last Post: ndc85430
  using py32, just need py64 LIBS for now, how to install? davecotter 1 2,281 Jan-29-2019, 10:40 PM
Last Post: davecotter

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020