Score:0

install packages (for python/django) from a txt file in ubuntu that was meant for windows

kn flag

i am new but also have a weird problem. i m not deep into programming and i m just a power user, but i have to fix a typo in a python app which would be no problem but to run it again i have to get all the add-on and tools my predecessor added - and that on that specific version! so i have a requirement.txt with fmany line for example

Django==1.8.4

dj-database-url==0.5.0

django-appconf==1.0.1

django-autocomplete-light==2.2.6

how do i adjust it that i can use that list for pip under ubuntu or is that not possible?

it worked fine in windows, it finds almost everythign (except django-mailgun) but ofc he has another requirement (foreman) that is not available under windows so i m not in a virtual enviroment in ubuntu trying to edit the list or trying to find the add-ons one by one (since those are 20 i need alot of time)

does anyone have an idea how to edit the txt to use it with ubuntu and pip?

(edit the exaple showed as 1 row but it is 4 rows)

waltinator avatar
it flag
Read `man dos2unix`.
vidarlo avatar
om flag
Doesn't `pip install -r Requirements.txt` work? What error messages do you get?
T Kluth avatar
kn flag
sorry for late answer. so if i start pip install -r Requirements.txt it start just like in windows with the remark that python 2.7 has reached the end of its like and so on but then it stops and says "no matching distribution found for django==1.8.4 i assume it is because the txt is made or windows and the way the requirments are listed is for windows i played around alil with other txt files but not sure how to put the version so it can find something
T Kluth avatar
kn flag
Hi, yes pip install -r Requirements.txt did not work, but because there was a package in the requirements.txt that was outdated and not available anymore, i installed every single add-on by hand aand managed to single out proper order and which ones are not working anymore (for some reason mysql-python and pylibmc==1.2.3)
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.