I am using IPython.
I am attempting to install a package from GitHub.
I am using the following:
easy_install https://github.com/lisa-lab/pylearn2/tree/master/pylearn2
My output states invalid syntax (highlights the "s" in https).
Specifically it states File "<ipython-input-1-c700863fa141>", line 1
Any help would be appreciated.
There are a couple of misunderstandings here:
easy_install is not a Python command, it is a shell command. So you want to either run this line in a regular shell:
$> easy_install [url]
or prefix with ! in IPython:
In [1]: !easy_install [url]
that URL is not the right one for installing current master of a github project. You want to use the tarball url:
$> easy_install https://github.com/lisa-lab/pylearn2/tarball/master
Related
I want to install apex on my computer with Windows 10 and cuda 9.0. I know apex is not recommended to be installed on Windows, but I still very much want to try it. I used These two commands provided on apex official website:
pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext"
and
pip install -v --no-cache-dir
but under both conditions got the error:
ERROR: You must give at least one requirement to install (see "pip help install")
The whole message is:
>pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext"
C:\Users\Huiqi Xue\AppData\Local\conda\conda\envs\deeplearning\lib\site-packages\pip\_internal\commands\install.py:211: UserWarning: Disabling all use of wheels due to the use of --build-options / --global-options / --install-options.
cmdoptions.check_install_build_global(options)
Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
Config variable 'WITH_PYMALLOC' is unset, Python ABI tag may be incorrect
Created temporary directory: C:\Users\HUIQIX~1\AppData\Local\Temp\pip-ephem-wheel-cache-9dmaw_wt
Created temporary directory: C:\Users\HUIQIX~1\AppData\Local\Temp\pip-req-tracker-rf4_u0bh
Created requirements tracker 'C:\\Users\\HUIQIX~1\\AppData\\Local\\Temp\\pip-req-tracker-rf4_u0bh'
Created temporary directory: C:\Users\HUIQIX~1\AppData\Local\Temp\pip-install-bflvtp4e
Cleaning up...
Removed build tracker 'C:\\Users\\HUIQIX~1\\AppData\\Local\\Temp\\pip-req-tracker-rf4_u0bh'
ERROR: You must give at least one requirement to install (see "pip help install")
Exception information:
Traceback (most recent call last):
File "C:\Users\Huiqi Xue\AppData\Local\conda\conda\envs\deeplearning\lib\site-packages\pip\_internal\cli\base_command.py", line 143, in main
status = self.run(options, args)
File "C:\Users\Huiqi Xue\AppData\Local\conda\conda\envs\deeplearning\lib\site-packages\pip\_internal\commands\install.py", line 293, in run
self.name, wheel_cache
File "C:\Users\Huiqi Xue\AppData\Local\conda\conda\envs\deeplearning\lib\site-packages\pip\_internal\cli\base_command.py", line 252, in populate_requirement_set
'(see "pip help %(name)s")' % opts)
pip._internal.exceptions.CommandError: You must give at least one requirement to install (see "pip help install")
Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
Config variable 'WITH_PYMALLOC' is unset, Python ABI tag may be incorrect
1 location(s) to search for versions of pip:
You are probably getting the error because you missed the dot at the end of the command:
pip install -v --no-cache-dir --global-option="--cpp_ext" --global-option="--cuda_ext" .
Where from should I download virtualenv to use locally from source using wget?
I'm having troubles downloading virtualenv from the command line.
Info: if you search for virtualenv you will find the site for the stable version and its installation guide which is just equals to the latest version installation guide.
To install locally it describe this :
To install version X.X globally from source:
$ curl -O https://pypi.python.org/packages/source/v/virtualenv/virtualenv-X.X.tar.gz
$ tar xvfz virtualenv-X.X.tar.gz
$ cd virtualenv-X.X
$ [sudo] python setup.py install
To use locally from source:
$ curl -O https://pypi.python.org/packages/source/v/virtualenv/virtualenv-X.X.tar.gz
$ tar xvfz virtualenv-X.X.tar.gz
$ cd virtualenv-X.X
$ python virtualenv.py myVE
I'm using wget instead curl but should not be problem at all with this. Am I wrong?
The only place where I can download it (and not from the command line) is from here.
I'm typing the url correctly.
Different virtualenv versions at the url return the same not found:
HTTP request sent, awaiting response... 404 Not Found
2017-07-21 17:53:09 ERROR 404: Not Found.
Please note that I have already downloaded the tar.gz so I don't need it right now but I'm not sure if this is a broken link issue or I'm forgotten something else at the download command. I will not associate an issue to virtualenv just because a broken link but I need to know why this is not working.
EDIT: I can't download it using wget from ..python..packages/source/v/virtualenv etc.
TARGET="https://pypi.python.org/simple/virtualenv/"
PATTERN="virtualenv-15.1.0.tar.gz"
wget --recursive --no-directories --accept=$PATTERN $TARGET
Yes, curl and wget are equivalent for what you're trying.
No, you can download from anywhere. From PyPI, e.g.
There is no functional difference between pip install virtualenv and what you're trying to do but the former is simpler and less error-prone so why bother with manual labour?
I am trying to install sipp with pcap-replay on winows7.
I have installed cygwnin, libncurse, and winpcap. I was trying to patch cygwin with IPv6 using the URL http://cygwin.win6.jp/cygwin-ipv6/, but it couldn't get the setup.ini file.
So I copied to local directory and upgrade, but it said no new updates.
And if I try to complie sipp. it gives error
$ ./configure.ac --with-pcap
./configure.ac: line 3: syntax error near unexpected token [SIPp],'
./configure.ac: line 3:AC_INIT([SIPp], [3.3], [sipp-users#lists.sourceforge.net], [sipp])'
Could anyone help me in getting sipp be installed on windows?
I download sipp.3.3.990 it has ./configure and was able to install on Linux.
But now on windows it still fails saying ncurse is not present. But I have downloaded it.
How do I troubleshoot it from here?
You can follow below steps to generate configure from configure.ac.
$> autoreconf -i
Now, you will see a configure file created at the same location.
To run the above command, following packages are required: automake,ncurses-devel,libncurses,M4 and autoconf.
if any of the above packages are missing run the cygwin setup file again and select the packages on the package selection screen and click install.
I intend to use Tab Completion, then I try to load readline using the following command:
$ irb -r irb/completion
However, irb throws an error message shown below:
/usr/local/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require':LoadError: cannot load such file -- readline
Then I try to install readline using command:
gem install readline
But, RubyGems prompt me that
ERROR: Could not find a valid gem 'readline' (>= 0) in any repository
How can I fix it?
You have been troubled by the naming.
The repo name is rb-readline
You need to have the readline libraries installed when you compile Ruby.
Follow this blog: http://vvv.tobiassjosten.net/ruby-on-rails/fixing-readline-for-the-ruby-on-rails-console/
I recently installed Casperjs on server (centos) and when I try to run I get the following error:
File "/usr/local/bin/casperjs", line 11
except subprocess.CalledProcessError as err:
^
SyntaxError: invalid syntax
This is the result of running "casperjs --version" which should just print the version number. Although any other commands with casperjs also give the same output.
The steps that I followed to install are pretty standard:
git clone git://github.com/n1k0/casperjs.git
cd casperjs
git checkout tags/1.0.2
ln -sf `pwd`/bin/casperjs /usr/local/bin/casperjs
Also, I'm running version 1.9.6 of phantomjs which is required for casperjs.
Any ideas?
You could check if the version of python is greater than 2.6 or not
for my case , I type the command
python -v
and I get 2.4.3 on the old online redhat machine .
than you could try update your python version .
It might some help