Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed last month.
Improve this question
I just installed ubuntu (Im new to this) through virtual box, and i wanted to download python, and then binwalk.
I checked with python --version and found out that python 3.10.7 is installed.
I then proceeded to do sudo python3 setup.py install like this page says (It's the first step): https://github.com/ReFirmLabs/binwalk/blob/master/INSTALL.md
It says: can't open file 'home/username/setup.py': [Errno 2] No such file or directory
I tried to find solutions online, but nothing succeeded. Even when I try to delete and reinstall python, it doesn't change anything.
Note that setup.py is a Python script of the repository (this one). When you do python3 setup.py install, you are telling your Python interpreter (python3) to execute the script setup.py with the argument install. However, the setup.py script must be in your working directory. Otherwise, the Python interpreter won't know what setup.py is. To do so. you must first clone the repo:
git clone https://github.com/ReFirmLabs/binwalk.git
Then move to the new directory containing the cloned repo:
cd binwalk
And then install the Python package as told in the installation guide:
sudo python3 setup.py install
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I was following the tutorial on Ansible docs but was unable to finish it:
$ python -m pip install --user ansible
Returns an error:
/usr/bin/python: No module named pip
While another guide installed it by using python-pip3 and then after running pip3 install --user ansible it was ready to go.
It finishes installation successfully, yet ansible is still not available:
-bash: /usr/bin/ansible: No such file or directory
I have never worked with Python or PIP in the past and I don't understand what could go wrong in the process to start debugging.
You should check your python version in the terminal with
$ which python
command and then this returns a path that contains python(probably this will return a path because almost all of Linux distro contains python). After that result, you could type
$ curl https://bootstrap.pypa.io/get-pip.py
in the terminal, and then type
$ python get-pip.py
pip will be installed after these commands.
I have not found a solution to this but instead I went with the CentOS Epel repository also described in the Ansible docs and it works this way.
sudo yum install epel-release
sudo yum install ansible
Edit: Ok, so all I had to do is to add the following to .bashrc file.
export PATH="$HOME/.local/bin:$PATH"
Fixed.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
Improve this question
I have python 3 installed on my mac. I have installed packages via python3 pip install up until now, but if I try to use pip install I'm getting pip not found error. How do I resolve this?
p.s: I just want to install packages via pip install and not python3 -m pip install.
You can set alias in your ~/.bash_profile and try
alias pip=pip3
#or
alias pip=python3 pip
I have found in the end that this is the right way to do it:
https://opensource.com/article/19/5/python-3-default-mac
The actions to take in order to achieve this it's easy.
Take the first 3 steps from the blog.
After that you can install any of versions available from this list, using this command to show it:
pyenv install -l
Why you should do this way requires you to read the entire post.
Change alias in your terminal profile file
if you use bash goto ~/.bashrc file and
alias pip=pip3
if you use zsh goto ~/.zshrc file and do the same
do this on terminal:
alias pip=pip3
or use :
pip3 install <library_name>
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 8 years ago.
Improve this question
I'm trying to add MoneyField to my Django App using Django-Money.
According to the requirements, I need to install py-moneyed v0.4 or later.
I checked py-moneyed but it doesn't mention how to install py-moneyed?
Can someone help me to install py-moneyed and Django-Money on my environment ?
Is there a pip or easy_install package that will do this?
Try running:
pip install py-moneyed
or
easy_install py-moneyed
If pip and easy_install do not work, download the source for py-moneyed from their GitHub by clicking on the 'Download Zip' button on the right side of the website.
Once you have downloaded the source, run setup.py inside the folder with this command:
python setup.py install
This will install the module. For more information see Python's Docs on Installing Python Modules.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
Mac OSX 10.6.8 Python 2.7
Hi guys,
I just recently started programming with Python using the "Think Python" by Allen Downey. In Chapter 4, the first case study, he recommends to install a package called swampy...so basically I´m stuck here. For trouble shooting Downey recommends:
import swampy.TurtleWorld -> doesnt work
pip install swampy -> command not found(Could`t also install pip)
After typing
sudo python setup.py install
I get
/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can't open file 'setup.py': [Errno 2] No such file or directory
Then I unzip the package swampy and thought to drag&drop it into the appropriate directory, however my directory ends with System/Library/Frameworks/Python.framework/Versions/2.7/Resources here I have 3 objects "English.Iproj" "inof.plist" and "Python"
Does anybody have some suggestions how to install that package?
THX a lot
you shall do:
sudo easy_install pip
sudo pip install swampy
Go to the directory where setup.py is located.
Enter into console next: sudo python setup.py install
Or use easy_install Or pip.
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 9 years ago.
Improve this question
I was trying to actually Install biopython on my new mac. Python 2.7 is already installed in it. To install biopython I found is good to install with macports. Now to install macports I need xcode but after running Xcode I installed macports which successfully installed. Then tried to install biopython using this command:
sudo port install py27-biopython
But ended up in a warning like this:
Warning: The Command Line Tools for Xcode don't appear to be installed; most ports will likely fail to build.
Warning: See http://guide.macports.org/chunked/installing.xcode.html
for more information.
---> Computing dependencies for py27-biopythonError: Unable to execute port: can't read "build.cmd": Failed to locate 'make' in path:
'/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin' or at
its MacPorts configuration time location, did you move it? To report a
bug, see http://guide.macports.org/#project.tickets
What should I be doing as I am very new to mac os
You can get Xcode from the Mac App Store as a free download. From within that (in the preferences | downloads) you can download and install the command line tools.
You might also need to tell the command line tools to use the versions within the Xcode app bundle rather than those in /Developer which aren't there with the new package based install.
Run this from the Terminal:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
Don't forget what I forgot:
After installing Xcode 4.3, the Command Line Tools must be installed. This is done from the Downloads section of Xcode's preferences!!!