bbranham
bbranham

Reputation: 1

Python 3.6 USZIPCODE Install

I'm brand new to Python. I've been using Python through Anaconda. I'm running Python 3.6.5. Right now, I'm trying to install a package called USZIPCODE from https://pypi.org/project/zipcodes/. I downloaded the zip file from this site in to my downloads folder. I then tried to use $ pip install uszipcode from the CMD prompt. This doesn't work. "Invalid Syntax" is returned. I've looked at videos on how to use pip to install other packages but they have not been able to solve my problem. The picture below should give some insight in to the issue. Any pointers on how I can install this package into python? Thank you! enter image description here

Upvotes: 0

Views: 4730

Answers (1)

user2529589
user2529589

Reputation: 370

2 years too late to help bbranham, but for other Anaconda Python beginners having trouble using pip install, use the "Anaconda Powershell Prompt". For instance, on Windows 7:

  1. Hit the windows key and type "Anaconda Powershell Prompt" and select in the search bar to open the Anaconda Powershell cmd prompt.
  2. If you are using different environments make sure to activate your environment with conda activate yourenvname
  3. pip install uszipcode should work out then (to download and install the uszipcode package to your active anaconda environment).

Upvotes: 1

Related Questions