pmaji / crypto-whale-watching-app

Python Dash app that tracks whale activity in cryptocurrency markets.
MIT License
609 stars 137 forks source link

noob issue, invalid syntax #97

Closed shawn-j closed 6 years ago

shawn-j commented 6 years ago
Python 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)] on win32

pip install -r D:\_installers\crypto-whale-watching-app-master\requirements.txt
          ^
SyntaxError: invalid syntax
theimo1221 commented 6 years ago

@shawn-j You have to run it inside CMD (Command Line) not inside Python

So don´t run python pip install -r D:\_installers\crypto-whale-watching-app-master\requirements.txt

Just run pip install -r D:\_installers\crypto-whale-watching-app-master\requirements.txt

shawn-j commented 6 years ago

Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\dma>pip install -r D:_installers\crypto-whale-watching-app-master\requ irements.txt 'pip' is not recognized as an internal or external command, operable program or batch file.

C:\Users\dma>

D:_installers\crypto-whale-watching-app-master>pip install -r D:_installers\cr ypto-whale-watching-app-master\requirements.txt 'pip' is not recognized as an internal or external command, operable program or batch file.

theimo1221 commented 6 years ago

You miss a \ after d: And missing pip can be because of wrong environmental variable

@shawn-j take a look inside python folder and just run there pip.exe ...

And look at Google many had those problems previously and it has nothing to do with our application

shawn-j commented 6 years ago

i searched and couldn't find pip.exe anywhere in my computer.. sorry if i'm having noob issues.. what do i type into google to find the solution?

theimo1221 commented 6 years ago

@shawn-j First result in Google if you type: 'pip' is not recognized as an internal or external command, operable program or batch file.

https://stackoverflow.com/questions/23708898/pip-is-not-recognized-as-an-internal-or-external-command

theimo1221 commented 6 years ago

@shawn-j does it work?

shawn-j commented 6 years ago

just tried it, it didn't work:

Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved.

C:\Users\dma>echo %PATH% C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\system32;C:\Wi ndows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Pr ogram Files (x86)\Bitvise SSH Client;C:\Program Files\PuTTY\;C:\Program Files (x 86)\Brackets\command;C:\Program Files\Git\cmd;C:\Program Files (x86)\Gpg4win..\ GnuPG\bin;C:\Users\dma\AppData\Local\GitHubDesktop\bin;%DASHLANE_DLL_DIR%

C:\Users\dma>setx PATH "%PATH%;C:\Python34\Scripts"

SUCCESS: Specified value was saved.

C:\Users\dma>pip install -r D:_installers\crypto-whale-watching-app-master\requ irements.txt 'pip' is not recognized as an internal or external command, operable program or batch file.

C:\Users\dma>

theimo1221 commented 6 years ago

@shawn-j This only works if python is installed to the folder wich you typed after path... And due to the fact you wrote python34 I guess it's wrong

You need python 3.6 anyways so just go to python website download 3.6 Windows installer it should set python path as well

pmaji commented 6 years ago

Yep, you have a versioning problem.

Tbh, I'd recommend just using one of the popular recent youtube tutorials to be sure you get it all right. One of them is here: https://www.youtube.com/watch?v=BcPIXq2hPtc

shawn-j commented 6 years ago

ok i installed 3.6 and it looks like it's working! thanks for helping a noob out lol

shawn-j commented 6 years ago

great.. now i'm onto the next step, and getting another error.. should I start a new thread? or just post it here.. i'm not sure if i'm even doing the right thing here, as it can't open app.py, says no such file or directory.. so i'm guessing that this whole thread was about installing pip, and now i can't install the whale watcher app?

D:>pip install D:_installers\crypto-whale-watching-app-master\requirements.txt

Invalid requirement: 'D:_installers\crypto-whale-watching-app-master\requiremen ts.txt' It looks like a path. Does it exist ?

D:>

theimo1221 commented 6 years ago

@shawn-j I guess you are messing up the path.... Just open up that folder with all the files from here (requirements.txt app.py.....) Click in the address bar and type cmd

This will open up command-line within correct directory. Then just type pip install -r requirements.txt

Once it's done just type python app.py

pmaji commented 6 years ago

Closing because I assume given the lack of follow-up that this has been solved.

shawn-j commented 6 years ago

hi! sorry, the last response got buried in my email, trying it now

On Sat, Apr 7, 2018 at 6:42 PM, Paul Jeffries notifications@github.com wrote:

Closing because I assume given the lack of follow-up that this has been solved.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/pmaji/crypto-whale-watching-app/issues/97#issuecomment-379504322, or mute the thread https://github.com/notifications/unsubscribe-auth/ASunuC59rUmt1x3Tl-cWXwm5vqcMkwWGks5tmUDmgaJpZM4SzBTK .

theimo1221 commented 6 years ago

@shawn-j does it work?