标签: install

无法安装和加载包

我最近将R和Rstudio下载到了我的电脑上.

当我尝试安装包ncdf(或任何包)时,我收到以下消息:

> install.packages("ncdf")
Installing package into ‘C:/Users/Talos/Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.1/ncdf_1.6.7.zip'
Content type 'application/zip' length 358300 bytes (349 Kb)
opened URL
downloaded 349 Kb

package ‘ncdf’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\Talos\AppData\Local\Temp\RtmpKuMfwR\downloaded_packages

> load("ncdf")
Error in readChar(con, 5L, useBytes = TRUE) : cannot open the connection
In addition: Warning message:
In readChar(con, 5L, useBytes = TRUE) :
  cannot open compressed file 'ncdf', probable reason 'No such file or directory' …
Run Code Online (Sandbox Code Playgroud)

install packages r netcdf rstudio

3
推荐指数
1
解决办法
3067
查看次数

在GoDaddy主机上安装composer会导致解析错误

我正在尝试在我的共享Godaddy托管上安装作曲家.我需要作曲家来安装laravel.我正在使用PUTTY通过SSH连接.键入时,我成功连接

-bash-3.2$ ls
Run Code Online (Sandbox Code Playgroud)

我得到这些文件夹:

 data  html  scctmp  tmp
Run Code Online (Sandbox Code Playgroud)

然后我输入:

curl -sS https://getcomposer.org/installer | php
Run Code Online (Sandbox Code Playgroud)

它回报我:

Content-type: text/html

<br />
<b>Parse error</b>:  syntax error, unexpected T_NEW in <b>-</b> on line <b>382</b><br />
Run Code Online (Sandbox Code Playgroud)

如何解决这个问题?

install composer-php

3
推荐指数
2
解决办法
6079
查看次数

如何安装要在终端中使用的Dart?(命令行)

如何安装Dart,以便可以在终端中使用该语言?(对于基于UNIX的系统,例如Mac)

bash command-line install path dart

3
推荐指数
1
解决办法
1239
查看次数

numpy.dot很慢但是安装了blas和lapack,如何解决?

我正在运行ArchLinux,我的python版本是2.7.8,BLAS并且LAPACK都安装了:

% pacman -Qs blas; pacman -Qs lapack
local/blas 3.5.0-1
    Basic Linear Algebra Subprograms
local/lapack 3.5.0-1
    Linear Algebra PACKage
Run Code Online (Sandbox Code Playgroud)

Numpy已安装完毕sudo pip2 install numpy,它确认它同时看到BLASLAPACK:

>>> numpy.show_config()
blas_info:
    libraries = ['blas']
    library_dirs = ['/usr/lib64']
    language = f77
lapack_info:
    libraries = ['lapack']
    library_dirs = ['/usr/lib64']
    language = f77
atlas_threads_info:
  NOT AVAILABLE
blas_opt_info:
    libraries = ['blas']
    library_dirs = ['/usr/lib64']
    language = f77
    define_macros = [('NO_ATLAS_INFO', 1)]
atlas_blas_threads_info:
  NOT AVAILABLE
openblas_info: …
Run Code Online (Sandbox Code Playgroud)

python install numpy blas lapack

3
推荐指数
1
解决办法
1716
查看次数

安装sqlite3时出错,无法构建gem本机扩展

我已经提到了以下关于stackoverflow的解决方案,但是我仍然遇到相同的问题:

安装mysql2时出错:无法构建gem本机扩展),

上面的链接中引用的以下命令未解决该问题:

brew安装mysql

显然,问题仍然存在,返回以下输出:

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
checking for sqlite3.h... yes
checking for sqlite3_libversion_number() in -lsqlite3... no
sqlite3 is missing. Try 'port install sqlite3 +universal',
'yum install sqlite-devel' or 'apt-get install libsqlite3-dev'
and check your shared library search path (the
location where your sqlite3 shared library is located).
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log …
Run Code Online (Sandbox Code Playgroud)

sqlite gem install ruby-on-rails

3
推荐指数
1
解决办法
4947
查看次数

如何在Ubuntu中安装ROUGE

虽然有很好的描述如何设置ROUGE评估,但我无法完全完成安装的任何地方.

installation ubuntu perl install perl-module

3
推荐指数
1
解决办法
1413
查看次数

"致命错误:无法找到当地的咕噜声." 在windows7专业

我想开始咕噜咕噜,我得到以下信息:

c:\repositories\kunde_1\themes-projekt_1\projekt_1-responsive\source>grunt
grunt-cli: The grunt command line interface. (v0.1.13)

Fatal error: Unable to find local grunt.

If you're seeing this message, either a Gruntfile wasn't found or grunt
hasn't been installed locally to your project. For more information about
installing and configuring grunt, please see the Getting Started guide:

http://gruntjs.com/getting-started
Run Code Online (Sandbox Code Playgroud)

在运行grunt时你会看到:

C:\Users\dev_user>npm install -g grunt-cli
npm http GET https://registry.npmjs.org/grunt-cli
npm http 304 https://registry.npmjs.org/grunt-cli
npm http GET https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/findup-sync
npm http GET https://registry.npmjs.org/resolve
npm http 304 …
Run Code Online (Sandbox Code Playgroud)

javascript install node.js npm gruntjs

3
推荐指数
1
解决办法
9673
查看次数

如何在Mac的R版本3.2.1中安装ggp​​lot2

我刚刚下载了R和Rstudio的新Mac版本,但是当我尝试通过Rstudio界面安装ggp​​lot2时收到以下错误消息。有替代方法吗?

> install.packages("ggplot2")
Warning in install.packages :
  unable to access index for repository https://cran.rstudio.com/src/contrib
Warning in install.packages :
  package ‘ggplot2’ is not available (for R version 3.2.1)
Installing package into ‘/Users/tom.glaser/Library/R/3.2/library’
(as ‘lib’ is unspecified)
Warning in install.packages :
  unable to access index for repository https://cran.rstudio.com/src/contrib
Warning in install.packages :
  package ‘ggplot2’ is not available (for R version 3.2.1)
Warning in install.packages :
  unable to access index for repository https://cran.rstudio.com/bin/macosx/contrib/3.2
Warning message:
package ‘ggplot2’ is not available (for R version …
Run Code Online (Sandbox Code Playgroud)

install packages r ggplot2 osx-mountain-lion

3
推荐指数
1
解决办法
9353
查看次数

使用--user标志安装时找不到Python入口点命令行脚本

我最近写了一个包含命令行工具的包.setup.py看起来像这样

from setuptools import setup

setup(...
      entry_points = {
            'console_scripts': [
                    'cmdname = modulename.binary:main',
                ],
          },
      ...)
Run Code Online (Sandbox Code Playgroud)

当我在没有--user标志的情况下安装它时,一切都很好

$ sudo python setup.py install
$ cmdname
Yes, I'm here! Give me a command!
Run Code Online (Sandbox Code Playgroud)

但是,安装它没有root访问权限

$ python setup.py install --user
$ cmdname
-bash: cmdname: command not found
Run Code Online (Sandbox Code Playgroud)

我想应该有一个用户脚本链接到的目录应该导出到PATH?我怎样才能实现setuptools链接到入口点?或者那是不可能的?

python install setuptools entry-point

3
推荐指数
1
解决办法
1263
查看次数

从R中的本地zip文件安装包

我试图从本地zip文件安装R中的包.我在本地驱动器上有zip文件,但是当我转到Packages - >从本地zip文件安装包时,我收到以下警告:

> utils:::menuInstallLocal()
Error in read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) : cannot open the connection
Run Code Online (Sandbox Code Playgroud)

另外:警告信息:

1: In unzip(zipname, exdir = dest) : error 1 in extracting from zip file
2: In read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) : cannot open compressed file 'cirt/DESCRIPTION', probable reason 'No such file or directory'
Run Code Online (Sandbox Code Playgroud)

这里发生了什么?

非常感谢,A

install packages r local-files install.packages

3
推荐指数
1
解决办法
2万
查看次数