Custom Search

Friday, December 9, 2016

How to pip install python package into a specific directory

1)
(myenv) saju@ubuntu:~$ sudo pip install -t /home/saju/myenv/lib/python2.7/site-packages django-localflavor

Use -t option

2)
(myenv) saju@ubuntu:~$ python
Python 2.7.12 (default, Jul  1 2016, 15:12:24)
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import localflavor

1 comment:

  1. I like your blog, I read this blog please update more content on python, further check it once at python online training

    ReplyDelete