Change temp working folder (tmp) with easy_install [closed] - python

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I am trying to install the birdsuite pipeline from the Broad Institute using the included easy install package. The installation fails when trying to find a set up script:
=================================================================
SETTING UP http://pypi.python.org/packages/2.5/p/plinkpipeline/plinkpipeline-1.6.6-py2.5.egg
:
Downloading http://pypi.python.org/packages/2.5/p/plinkpipeline/plinkpipeline-1.6.6-py2.5.egg
Processing plinkpipeline-1.6.6-py2.5.egg
error: Couldn't find a setup script in /tmp/easy_install-hxr0WF/plinkpipeline-1.6.6-py2.5.egg
=================================================================
I agree with the error, I cannot find a script in the specified folder either. I have permission to write files and folders in /tmp/.
Thanks

Unfortunately, that project provides only a python 2.5 egg, which does not include a setup.py file at all.
That is an error on the part of the author of the package. You need to find a .tar.gz source distribution instead. I cannot locate one, though.

Related

Using shodan from the terminal [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I've been looking forward to downloading the command-line interface for "Shodan".
On the website they say that i basically have to type "pip install -U --user shodan" in my cmd, so i did multiple times and it now says that the requirement are already satisfied, which feels normal since i did it multiple times trying to fix said problem.
Now the problem is, next step is to basically type "shodan" in the cmd, problem is it says 'shodan' isn't recognized.
What am i supposed to do ! :(
You need to add the path of the scripts to your system PATH variable:
It is something like this:
C:\Python38\Scripts
When you run pip install, it installs an exe file under the Scripts folder of your python installation. You should add this path to the PATH variable as described in the link. This makes the exe available in the terminal.
See this guide for more information:
https://datatofish.com/add-python-to-windows-path/

Creating a stand alone program from Python 3.6 - with xml files [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I want to create a stand-alone program from a Python project.
Part of my data is saved in xml files, so I need them to be a part of the build
Wich program can help me do so?
Thanks,
Avishay
You can use Pyinstaller to create a stand-alone executable program. If your program depends of other files, you can include it in the program using the Pyinstaller spec files. Spec files contains all the instructions to create your program, including additional data files or missing modules that Pyinstaller cann't find. I strongly recommend you to use it.
You can build your program using Pyinstaller with your script:
pyinstaller myprogram.py
And a spec file will be automatically generated, then you can edit it and use it for new builds.

Should every python program be distributed with a setup.py? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
Disclaimer: I'm still not sure I understand fully what setup.py does.
From what I understand, using a setup.py file is convenient for packages that need to be compiled or to notify Disutils that the package has been installed and can be used in another program. setup.py is thus great for libraries or modules.
But what about super simple packages that only has a foo.py file to be run? Is a setup.py file making packaging for Linux repository easier?
Using a setup.py script is only useful if:
Your code is a C extension, and then depends on platform-specific features that you really don't want to define manually.
Your code is pure Python but depends on other modules, in which case dependencies may be resolved automatically.
For a single file or a few set of files that don't rely on anything else, writing one is not worth the hassle. As a side note, your code is likely to be more attractive to people if trying it up doesn't require a complex setup. "Installing" it is then just about copying a directory or a single file in one's project directory.

Django framework installation [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have installed django framework with Python 2.7 and created all the paths. The problem is that whenever I type
django-admin.py command
the file itself is opening up. I am using Windows 7 64 bit.
Thank you.
You need to type
python django-admin.py command
If you get an error saying 'python is not recognized as an internal or external command..' you also need to add the python path to your environment path.
The problem is that .py files are not associated with python, so it gets treated as a normal txt file. You can either:
python django-admin.py command
(and see #VladSchnakovszki answer for errors which might pop up with that command), Or configure the files by right clicking > Properties, then (under General options):
Point it to python.exe and tell it to associate all files with the same extension with python as well.
P.S. a personal recommendation: When working in a windows environment I've had a good experience with installing ActiveState Python. It automatically sets the required paths, and also installs pip and other goodies that you'll probably need along the way (don't be scared of the priced version, there's a free community version too).

compile and install python2.6.5-devel [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I download python-2.6.5.tar.bz2 from http://www.python.org/ftp/python/2.6.5/
Now I want to compile and install a python-2.6.5-devel version on my custom Linux OS, how can I do that? Thanks a lot!
As soon as you extract the .tar.bz2 file, you will surprisingly see a file inside with an all-caps named README ! It invites you to read it as sincerely as by naming itself! Oh Please, don't let it down. And then on the line 896, you will find it kindly says:
To install the Python binary, library modules, shared library modules
(see below), include files, configuration files, and the manual page,
just type
make install

Categories