0

I am a hardcore newb when it comes to computers, but I am doing my best to learn Python. Namely, I'm taking an online Crypto course, and I'm trying to do an assignment which requires PyCrypto. I'm using the 32-bit version of Python 3.5.

I downloaded and extracted the PyCrypto file (2.6.1 if I'm not mistaken) to a folder, and then I double-clicked "setup.py" in the "dist" file. Once I executed the file, it transfers to another code called "core.py" and shows the following error message:

Traceback (most recent call last): File "C:\Users\Neil\Python\dist\pycrypto-2.6\setup.py", line 456, in <module> core.setup(**kw) File "C:\Users\Neil\AppData\Local\Programs\Python\Python35-32\Lib\distutils\core.py", line 136, in setup raise SystemExit(gen_usage(dist.script_name) + "\nerror: %s" % msg) builtins.SystemExit: usage: _sandbox.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...] or: _sandbox.py --help [cmd1 cmd2 ...] or: _sandbox.py --help-commands or: _sandbox.py cmd --help

error: no commands supplied

I have no idea what is going on, and I'm hoping someone can explain very simply what I should do to get this to work properly. I'm sorry for being that one annoying person!

boldbrandywine
  • 322
  • 1
  • 14
  • How about running from commandline: `python setup.py install`? (you might have to type your full path to _python_ executable), or if `install` argument doesn't work, try: `python setup.py --help` to see what is the command required to build and install the module. – CristiFati Nov 19 '15 at 00:32
  • Errrr what exactly is the command line? I think I'm confusing it with the Python Shell. Is it the command prompt on Windows? As I said, total newb (sorry). – boldbrandywine Nov 19 '15 at 00:51
  • Yes, it's the command prompt. And if simply typing `python` there doesn't open the python console, but throws an error, you have to launch python by its full path: `"C:\Users\Neil\AppData\Local\Programs\Python\Python35-32\python.exe"`. – CristiFati Nov 19 '15 at 00:55
  • Ok, I typed in the full path, hit enter, and then typed in the `python setup.py install`, but there was a syntax error (pointing at setup). – boldbrandywine Nov 19 '15 at 01:02
  • No, i said the full path instead of `python`. So it will be: `"C:\Users\Neil\AppData\Local\Programs\Python\Python35-32\python.exe" setup.py install`. Note that the path in the command prompt should be where your _setup.py_ is located: you probably should run `cd "C:\Users\Neil\Python\dist\pycrypto-2.6"` before. – CristiFati Nov 19 '15 at 01:06
  • You're a god-send! Thanks a million! – boldbrandywine Nov 19 '15 at 01:17

0 Answers0