General :: Specifying The Install Path Of A Python Package On Server?
Jun 23, 2010
I have been trying to install the NumPy package for Python on to my home directory, as I run as part of a server and do not have permissions to install new packages in the Linux server.
I have set up Python in my home directory, and have configured ~/.bash_profile to find my local Python (which works, confirmed by testing).
However, when I attempt to install the NumPy package, I get the message error: could not create '/usr/local/lib/python2.6': Permission denied Which I find strange because I do not see why it would need to install files anywhere except my local Python directory.
how I might be able to specify the directory in which files are installed?
View 2 Replies
ADVERTISEMENT
May 24, 2011
I've a 64-bit Ubuntu Linux machine. Linux version 2.6.28-14-generic (buildd@yellow) (gcc version 4.3.3 (Ubuntu 4.3.3-5ubuntu4) ) #47-Ubuntu SMP Sat Jul 25 01:19:55 UTC 2009 Ubuntu 9.04
Linux Debian 5.0 ( 2.6.28-14-generic x86_64)
When I tried to install the python-dev package on it using the command sudo apt-get install python-dev, I got following messages.
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed: python-dev
0 upgraded, 1 newly installed, 0 to remove and 271 not upgraded.
Need to get 978B of archives.
After this operation, 24.6kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
python-dev
Install these packages without verification [y/N]? y
Err http://in.archive.ubuntu.com jaunty/main python-dev 2.6.2-0ubuntu1 404 Not Found [IP: 91.189.88.45 80]
Failed to fetch http://in.archive.ubuntu.com/ubuntu/...buntu1_all.deb 404 Not Found [IP: 91.189.88.45 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Tried with --fix-missing option as well. Same errors in this case also. How I can install python-dev package on 64-bit Ubuntu Linux machine?
View 2 Replies
View Related
Nov 20, 2009
I'm trying to write a script in python to extract data from maillogs in gz format. I wrote a shell script but i now want to do this in python, as thats the preferred method where i work. anyway does anyone know how to specify directory paths for example the maillogs exist in /var/log so i want the script to go to that directory would LOG_DIR="/var/log/" work?
View 1 Replies
View Related
Oct 10, 2010
On Ubuntu 9.10 I installed Python 3.1.1 successfully with Synaptic Package Manager. However the Python interpreter cannot find my scripts, currently in /home/dave/pycode. This appends _temporarily_ but python remains clueless about location of my scripts. Searched Internet and some speak of .rc or .bashrc or .profile..files. Found some of these and opened with Komodo : they are Linux script files and I am clueless as to how to modify.Currently I can import my scripts only if I change to the /pycode dir before running.Lutz's Python book says to change PATH file - Ha .Sobell's "A practical Guide to Ubuntu Linux" is no help. Ubuntu's own on line help is worth less than a fart in a hurricane. Ubuntu's gedit would not even open bash.bashrc.
View 7 Replies
View Related
Feb 23, 2010
I am trying to install the MySQLdb package for python and the instructions tell me that I need to add mysql_config to my path. This file does not appear to exist in my mysql installation, or anywhere on my machine. I installed mysql-server from the ubuntu package manager, and then did a search of my system for that file.
Code:
sudo find / -name mysql_config
This gave me no results. where I can find this? Is it part of some extra toolkit for mysql?
View 2 Replies
View Related
Mar 12, 2010
I am trying to install the python-matplotlib package but I get E:broken packages. I have tried the apt-get -f install, apt-get update, apt-get clean all in various permutations but it doesnt solve the problem.I also tried uninstalling the dependednt packages and then reinstalling them but that doesnt work either.
root@ubuntu:~# apt-get install python-matplotlib
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming.
[Code]...
View 3 Replies
View Related
Oct 27, 2010
in ubuntu 10.10, I have installed python 2.7. I would like to use apt-get to install packages to this version of python but I haven't been able to figure out howThings I have tried without success:changing the symlink at /usr/bin/python to point to /usr/bin/python2.7 - even after doing this apt-get still installs stuff to python2.6.Set up python2.7 as the primary alternative using update-alternatives - doesn't work
View 3 Replies
View Related
Jul 6, 2010
I am writing a python package deployment tool for linux based platforms. I have tried various existing tool sets but none of them is up to the mark and they have their own issues. Initially I'll start with simple approach.
1. Find all the modules/packages and copy to "lib" directory.
2. Find python's *.so dependencies (system libs) and copy them to "syslib"
3. Copy python (executable) and libpython2.6.so.1.0 into "dist" directory.
4. Set up temp environment
5. Run main script using "python <main script>.py"
The idea is to produce a cleaner directory structure. Neither I am creating a boot loader nor I am converting main script file into executable. It's plain vanilla stuff. Using above steps I have pulled down a package using wxPython's demo example "pySketch.py". You can download the archive from here: [URL]. After extracting the contents, run the executable file using "./run". This file sets temporary environment variables and execute "pySketch.py". This is eventually not working. I think I am not able to set up temporary environment properly or may be missing some other stuff.
View 1 Replies
View Related
Aug 11, 2010
How do I set the PYTHONPATH for the root user only? Or at least add to the python path for the root user? I need to read from the /var/log/apache2/access.log in my python script, so I need to use sudo for my script to be able to read from it.I tried setting the PYTHONPATH in /root/.bashrc but that didn't work. I don't want to use a .pth file because I don't want the directory to be on the path for all users due to import collisions.
View 6 Replies
View Related
Feb 1, 2010
When I run openshot it spits out this:
Code:
Added /usr/share/openshot to system path
OpenShot (version 1.0.0)
*** ERROR: MLT Python bindings failed to import ***
*** ERROR: MLT Python bindings failed to import ***
Error: OpenShot has not been installed in the Python path.
(Both the site-packages and /usr/share/openshot folders were checked)
Use the following command to install OpenShot:
$ sudo python setup.py install
Exception in thread Thread-1:
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 525, in __bootstrap_inner self.run()
File "/usr/share/openshot/classes/thumbnail.py", line 174, in run mlt.Factory().init()
NameError: global name 'mlt' is not defined
View 1 Replies
View Related
Jul 14, 2011
i am trying to install torrentflux that requires python. but it says python path invalid . though it is installed and path is valid. i have chmoded it to 777 but same problem. I am using centos with LAMP.
here it the screen[URL]...
View 11 Replies
View Related
Jan 16, 2011
I found the following function in /etc/profile file.
[Code]...
1. I dont undestand what "if ! echo $PATH | /bin/grep -qE "(^|:)$1($|:)"" this if statement actually comapres??
2. Also what is the difference between PATH=$PATH:$1 & PATH=$1:$PATH
View 14 Replies
View Related
Dec 21, 2010
trying to install sunray server 5.0 which claims to support RHEL 5.3 or greater, but I can't even manage to get the utinstall to find the jre, which is installed. java -version is fine, which java, is fine. I've tried a zillion paths. Does java perhaps have to be in a specific location? Wouldn't the path to the jre normally be the ~/jre/bin the utinstall looks like: Enter Java v1.6 (or later) location [/usr/java]: No JRE found at /usr/java
[Code]...
View 2 Replies
View Related
Nov 7, 2009
Is there a formal documented way? I have found a method of doing it, but I find it difficult to believe the ability to uninstall is not formally supported. [URL]
Essentially:
When you install - python setup.py install --record files.txt
When you uninstall - cat files.txt | xargs rm -rf
This will, however, require the user to look through files.txt like a hawk. It is really not an ideal situation I would think.
View 1 Replies
View Related
Jan 17, 2010
I wish to install Python Numeric in site-packages... which package brings this...?I have searched in the Slackbuilds... and no Luck so far...
View 10 Replies
View Related
Nov 24, 2010
I have just installed SABnzb application in my home folder. The executable file is SABnzb.py When I run the command in the Konsole # python SABnzb.py I have this Quote: python: can't open file 'SABnzbd.py': [Errno 2] No such file or directory
View 5 Replies
View Related
Oct 8, 2010
I use this command:
Code:
find ./ -atime +360
to figure out the files that haven't been accessed since 360 days. The command above will return results like this:
Code:
/uploads/2010/02/some-file-name.ext
/uploads/2009/08/another-file-name.ext
... etc
I'm taking here about tins of directories, thousands of files. I'm looking to find a command that makes me able to move the results above to another path, and to create that path once it doesn't exist like below:
Code:
mv /uploads/2010/02/some-file-name.ext /old-files/uploads/2010/02/some-file-name.ext
But I want the executed command to create this path
Code:
/old-files/uploads/2010/02/
If it doesn't exist.
View 6 Replies
View Related
Oct 11, 2015
I'm currently running Debian Wheezy (upgrading to Jessie is not possible since I'm using OpenMediaVault which only supports Wheezy) but ever since I installed Deluge BitTorrent client that I've had this python-libtorrent package as "kept back". I'd like to fix this system state but how...
A few things I've tried:
Code: Select all$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
python-libtorrent
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Code: Select all~$ sudo apt-get install python-libtorrent
Reading package lists... Done
Building dependency tree
Reading state information... Done
[Code] .....
I have the following APT repositories on my sources which I believe are causing my problem:
Code: Select alldeb http://dh2k.omv-extras.org/debian/ stoneburner-miller main
deb http://ppa.launchpad.net/deluge-team/ppa/ubuntu precise main
They were added through OpenMediaVault's interface when I enabled some checkboxes to be able to install Deluge.
View 6 Replies
View Related
Sep 28, 2015
I'm trying to install some virtual machines to a dedi using KVM. So far everything seems to be working, I tested the KVM install with virsh -c qemu:///system list and it responded, however, I'm trying to now install the script for generating new vps's python-virtinst but putty is returning this error:
E: Unable to locate package python-virtinst
View 3 Replies
View Related
Feb 21, 2011
I have a program that takes a relative path as input appends it to a some path string to get the actual path.
Now all I can input is the relative path. So if I want to go one level above my input will be ../mypath.
If I know the depth of the path used internally, I can use .. as many times to go to the root directory and then give the absolute path. But suppose I do not know the depth of the directory, can I construct a relative path string such that it considers it as a relative path. One way could be to have enough .. in the path string so that I can force an absolute path for some maximum depth of path.
Is there some path string syntax that I am not aware of but can achieve this?
View 2 Replies
View Related
Apr 26, 2011
Experimenting with shell variables, accidentally deleted the path variable how could I return to the original path value. What kinds of problems will I have if I don't have a path variable.
View 3 Replies
View Related
May 22, 2011
I want to install python in RHEL 5.0.
View 2 Replies
View Related
Mar 7, 2010
How can I find the lynx location path on my server via SSH
View 2 Replies
View Related
Sep 14, 2009
I have a path c:windowsackup I need this string to be changed into /windows/back/up I used the command -bash-3.00$ echo windackup | sed 's/\//g' but the output is windbackup
View 7 Replies
View Related
May 31, 2011
Current script:-
prefix=user@my-server:
find . -depth -type d -name .git -printf '%h�' | while read -d "" path ; do (
cd "$path" || exit $?
[code]....
How shall i go about changing the absolute path to relative path, so that /home/git/mirror/android/adb/ndk.git gets converted to /mirror/android/adb/ndk.git //echo <command> "$prefix$PWD.git" ?? - anything for relative path?
View 7 Replies
View Related
Aug 5, 2011
How do I install the Python module for Gnash?
But apart from that, what basic concept am I not understanding about installing packages on Linux?
I am used to installing packages using package managers - mostly apt-get and zypper. I have occasionally installed from source, often with no trouble. However I recently installed Gnash and discovered that it has a Python binding that must be compiled from source and this has led down a rabbithole making me feel stupider at each turn.
First, I attempt do a ./configure --enable-python in the gnash source dir. This ends up failing with an error that
package pygtk-codegen-2.0 isn't found
The lead developer, Rob Savoye, was kind enough to point me at packages.debian.org, telling me I just need to locate this package. After many failed searches, I found that the python-gtk2-dev package contains this ... file? script? Great, but I couldn't figure out how to obtain the python-gtk2-dev package. It doesn't exist in any of my openSUSE configured repositories.
So I headed to the GNOME site and searched, found that the PyGTK package contains pygtk-codegen. Download the tarball, cd, ./configure, and this fails because I don't have GLIB. After some more searching I use zypper to install glib2-devel (libglib-2.0 was already installed), and now PyGTK fails to configure because I don't have GObject.
Find that, download tarball, cd, ./configure, fail. I don't have gobject-introspection-1.0, apparently. I DO have gobject-introspection installed, and it's version is ≥ 1.0, but that's what the script says.
So I will readily admit I am new to Linux, but I have to be missing some basic step here. Can anyone give me a clue about any of the above? Is it normal to have to install one dependency after another like this? Is OpenSUSE the wrong distro? What would make this process not so horrible?
View 2 Replies
View Related
Aug 6, 2010
I'm running Ubuntu 10.4 64bit, and I would like to run python 32bit.The current Python version used is the 64bit one.What can be some good ways for installing the python 32bit version without compromising the OS. I'm kind of new to this, so I don't really know if I could substitute the python version, or know how to make it available by using short commands such as python or easy_install.
View 1 Replies
View Related
Oct 1, 2010
I have downloaded java and installed it with chmod +x and then ./bin package.
Hereunder is an output from CLI (putty)
I understand that the system knows the java is in a wrong place but if I do java -version it finds it correctly. I don't know and I don't understand how do I need to tell the OS that the java is somewhere else, I just did that with export java home and java path but still dosen't work, it keep tells when I do whereis java "java: /usr/share/java"
Here is another output:
View 10 Replies
View Related
Jun 30, 2010
I am looking out for a command which can give me the list of applications installed and the corresponding install paths for those.let me know if there is any such command. Also, i am using rpm command to get the list of packages installed(i am assuming that this shows the list of applications installed).
View 4 Replies
View Related
Sep 3, 2010
My Yum server gives error message while installing packages like rpmts_HdrformFdno: Header V3 DSA Signature: NOKEY, KEY, Key ID 37017186" Samba-3.0.33-3.7.el5.i386 rpm is not install.
But I can install other package like bind dhcpd etc.
View 4 Replies
View Related