Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PIP install error
#11
(Dec-09-2017, 04:27 PM)alex36540 Wrote: Does this mean it's downloaded on my computer now, or is it just in the environment?
The environment is on your computer,so then it will download to your computer.
This approach is a lot better for package like this,that has a lot of dependencies

Look at part-2 for more on environment.
If want to write a script for this instagram API package outside with editor/IDE you use python in C:\1\insta_env\Scripts\python.exe,
to execute the script.
Reply
#12
(Dec-09-2017, 05:27 PM)snippsat Wrote: If want to write a script for this instagram API package outside with editor/IDE you use python in C:\1\insta_env\Scripts\python.exe,
to execute the script.
Do I need to use the environment somehow to be able to use the API in IDLE? Or could I just import the dependencies in the Python code?
Reply
#13
(Dec-10-2017, 11:56 PM)alex36540 Wrote: Do I need to use the environment somehow to be able to use the API in IDLE?
IDLE is not good at all,but you can use it.
python -m idlelib.idle
This is done in script folder of virtual environment,also where python.exe is.

Look at ptpython(review) or IPython for a better REPL than IDLE.
Quote:Or could I just import the dependencies in the Python code?
Yes,but remember has to execute with python in virtual environment.
Reply
#14
(Dec-11-2017, 06:08 PM)snippsat Wrote: Yes,but remember has to execute with python in virtual environment.
So is this how I should go about it?
[Image: oLs3zMe.png]
Can I just create a new file from the IDLE that I opened from the environment and make multi-lined code, which then then I can save from there and access again in the future?
Reply
#15
(Dec-16-2017, 03:31 AM)alex36540 Wrote: which then then I can save from there and access again in the future?
Yes save script in insta_env folder.
Example:
# insta_test.py
from InstagramAPI import InstagramAPI

print(InstagramAPI.API_URL)
Running from cmder.
(insta_env) C:\1\insta_env
λ python insta_test.py
https://i.instagram.com/api/v1/
Running from IDLE:
(insta_env) C:\1\insta_env
λ python -m idlelib.idle
Now in IDLE:
File --> New file(write script or copy in).
File --> Save As.. insta_test.py in inta_env folder.
Run --> Run modulle(F5)
Reply
#16
Okay, thank you so much
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  pip install pandas ERROR pythondudu 7 32,918 May-24-2022, 06:14 AM
Last Post: Marya_475
  How to install tensorflow? It shows as error jaroslavtavgen 1 1,926 Apr-26-2020, 10:09 PM
Last Post: Larz60+
  pandas install error loren41 5 4,824 May-20-2019, 06:42 PM
Last Post: loren41

Forum Jump:

User Panel Messages

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