2016-08-13 1 views
1

"scikits.samplerate"를 사용하고 싶지만 설치가 실패합니다. 저는 아나콘다와 함께 파이썬 3.51 용 Windows10 (64 비트)를 사용하고 있습니다. https://scikits.appspot.com/sampleratescikits.samplerate 설치 실패

>pip install scikits.samplerate Collecting scikits.samplerate Using cached scikits.samplerate-0.3.3.tar.gz 
    Complete output from command python setup.py egg_info: 
    SamplerateInfo: 
     libraries samplerate not found in c:\users\username\anaconda3\lib 
     libraries samplerate not found in C:\ 
     libraries samplerate not found in c:\users\username\anaconda3\libs 
    Traceback (most recent call last): 
     File "scikits\samplerate\setup.py", line 15, in configuration 
     sf_config = sf_info.get_info(2) 
     File "c:\users\username\anaconda3\lib\site-packages\numpy\distutils\system_info.py", line 568, in get_info 
     raise self.notfounderror(self.notfounderror.__doc__) 
    numpy.distutils.system_info.NotFoundError: Some third-party program or library is not found. 

    During handling of the above exception, another exception occurred: 

    Traceback (most recent call last): 
     File "<string>", line 1, in <module> 
     File "C:\Users\username\AppData\Local\Temp\pip-build-9sjnkaf5\scikits.samplerate\setup.py", line 74, in <module> 
     classifiers = CLASSIFIERS, 
     File "c:\users\username\anaconda3\lib\site-packages\numpy\distutils\core.py", line 135, in setup 
     config = configuration() 
     File "C:\Users\username\AppData\Local\Temp\pip-build-9sjnkaf5\scikits.samplerate\setup.py", line 59, in configuration 
     config.add_subpackage(DISTNAME) 
     File "c:\users\username\anaconda3\lib\site-packages\numpy\distutils\misc_util.py", line 1002, in add_subpackage 
     caller_level = 2) 
     File "c:\users\username\anaconda3\lib\site-packages\numpy\distutils\misc_util.py", line 971, in get_subpackage 
     caller_level = caller_level + 1) 
     File "c:\users\username\anaconda3\lib\site-packages\numpy\distutils\misc_util.py", line 908, in _get_configuration_from_setup_py 
     config = setup_module.configuration(*args) 
     File "scikits\samplerate\setup.py", line 20, in configuration 
     [samplerate].""") 
    numpy.distutils.system_info.NotFoundError: SRC (http://www.mega-nerd.com/SRC/) library not found. Directories to search 
    for the libraries can be specified in the site.cfg file, in section 
    [samplerate]. 

    ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in C:\Users\username\AppData\Local\Temp\pip-build-9sjnkaf5\scikits.samplerate\ 

... 다음에, I이 지시 하였다 :

우선, I는이 지시를 따라 그럼 https://anaconda.org/hcc/scikits.samplerate

>conda install -c hcc scikits.samplerate=0.3.3 Using Anaconda Cloud api site https://api.anaconda.org Fetching package metadata: ...... Solving package specifications: . Error: Package missing in current win-64 channels: 
    - scikits.samplerate 0.3.3* 

You can search for this package on anaconda.org with 

    anaconda search -t conda scikits.samplerate 0.3.3* 

를, I는 serached :

[Anaconda3] C:\Users\username>anaconda search -t conda scikits↲ Using Anaconda Cloud api site https://api.anaconda.org↲ Run 'anaconda show <USER/PACKAGE>' to get more details:↲ Packages:↲ 
    Name      | Version | Package Types | Platforms↲ 
    ------------------------- | ------ | --------------- | ---------------↲ 
    HCC/scikits.samplerate | 0.3.3 | conda   | linux-64↲ 
              : A python module for high quality audio resampling↲ 
    anaconda/scikits-image | 0.7.1 | conda   | linux-64, win-32, win-64, linux-32, osx-64↲ 
    davidbgonzalez/scikits.talkbox | 0.2.5 | conda   | linux-64↲ 
    desilinguist/scikits-bootstrap | 0.3.1 | conda   | linux-64, osx-64↲ 
    krisvanneste/scikits.timeseries | 0.91.3 | conda   | win-64↲ 
    lukepfister/scikits.cuda | master_2016.2 | conda   | linux-64↲ 
              : Python interface to GPU-powered libraries↲ 
    menpo/scikits.sparse  |  0.2 | conda   | linux-64, osx-64↲ 
    miguelalexanderdiaz/scikits.cuda | 0.5.0b1 | conda   | linux-64↲ 
              : Python interface to GPU-powered libraries↲ 
    poppy-project/scikits.samplerate | 0.3.3 | conda   | linux-armv7l↲ 
              : Simple Hamming Marker Detection using OpenCV↲ 
    rgrout/scikits.bootstrap | 0.3.2 | conda   | linux-64, osx-64↲ 
              : Bootstrap confidence interval estimation routines for SciPy.↲ Found 10 packages↲ ↲ [Anaconda3] C:\Users\username>anaconda show poppy-project/scikits.samplerate↲ Using Anaconda Cloud api site https://api.anaconda.org↲ Name: scikits.samplerate↲ Summary: Simple Hamming Marker Detection using OpenCV↲ Access: public↲ Package Types: conda↲ Versions:↲ + 0.3.3↲ ↲ To install this package with conda run:↲ 
    conda install --channel https://conda.anaconda.org/poppy-project scikits.samplerate↲ ↲ [Anaconda3] C:\Users\username>conda install 
--channel https://conda.anaconda.org/poppy-project scikits.samplerate↲ Using Anaconda Cloud api site https://api.anaconda.org↲ Fetching package metadata: ......↲ Solving package specifications: .↲ Error: Package missing in current win-64 channels:↲ 
    - scikits.samplerate↲ ↲ You can search for this package on anaconda.org with↲ ↲ 
    anaconda search -t conda scikits.samplerate↲ 

... 완료했습니다. 내가들은 바에도 불구하고 여전히 실패합니다. 해결책이있는 사람이 있습니까? 정말 설치할 수 있습니까?

+1

나는이가 HTTPS에 관한 생각 : // GitHub의는. com/cournape/samplerate/issues/8 – Erik

답변

4

이 방법이 효과가 있는지는 잘 모르겠지만 도움이 될지 모르겠다. site.cfg 파일을 편집하고 설치를 다시 시도 했습니까?이 질문은 20 번째 오류도 나와 있습니다.

여기 사용자가 우분투에서 해본 적이 있습니다. 비슷한 접근 방식이 Windows에서도 가능합니다.

You first need to install the SRC library: 

sudo apt-get install libsamplerate0 libsamplerate0-dev 
This python package will probably be the most tricky to install. If you are lucky, you can just 

pip install scikits.samplerate 
On my Ubuntu 12.04, this results in an error because the SRC library path is not found. The reason is that the setup searches SRC in /usr/lib and not in /usr/lib/x86_64-linux-gnu where the library is actually present. To install, you need to download the archive from pypi and edit some configuration file: 

wget https://pypi.python.org/packages/source/s/scikits.samplerate/scikits.samplerate-0.3.3.tar.gz#md5=96c8d8ba3aa95a9db15994f78792efb4 
tar -xvf scikits.samplerate-0.3.3.tar.gz 
cd scikits.samplerate-0.3.3 
then edit the site.cfg example file and insert the following lines: 

[samplerate] 
library_dirs=/usr/lib/x86_64-linux-gnu 
include_dirs=/usr/include 
To know where the SRC library is on you machine: 

sudo dpkg -L libsamplerate0 
sudo dpkg -L libsamplerate0-dev 
then, build and install: 

python setup.py build 
python setup.py install 
+0

불행히도 정보가 충분하지 않습니다. https://pypi.python.org/pypi/scikits.samplerate에서 "scikits.samplerate-0.3.3.tar.gz"를 다운로드했습니다. 타르를 추출하여 C : \ Users \ username \ Anaconda3 \ pkgs에 넣습니다. (이것이 올바른지 확실하지 않습니다.) 내가 말한 것처럼 "site.cfg.example"을 수정했습니다. 그러나 Ubuntu를 사용하지 않기 때문에 dpkg 명령이 없습니다. 이번에는 우분투 솔루션이 Windows 솔루션이 될 수 없다고합니다. 그래도 고마워. – IanHacker

+0

나는 파일 탐색기를 사용하여 SRC 라이브러리의 경로 (경로를 찾는 것과 동일한 Windows)를 탐색 한 다음 C : \ users \ Program files x 86 \ anaconda \ lib와 같은 Windows 형식의 경로로 바꾸 었다고 가정합니다)를 사용하는 것이 좋습니다. 미안하다. – Jeeth

0

http://msnoise.org/doc/installation.html

첫째, 내가 UNIX 시스템이 아닌 윈도우를 사용 알 수 있습니다.

나는 같은/비슷한 오류가 있었다 :

...numpy.distutils.system_info.NotFoundError: SRC (http://www.mega-nerd.com/SRC/) library not found. Directories to search for the libraries can be specified in the site.cfg file, in section...

을 내가 그 안에 주어진 링크, 다운로드 사이트 발견 다음 :

  • 컴파일
  • http://www.mega-nerd.com/SRC/download.html

    • 다운로드 소스, 그들에게
    • 설치 pip를 사용하여 scikits.samplerate를 설치했습니다.

    는 (! 나는 그것을 시도하지 않은) 윈도우에서 더 어렵게 할 수도 있지만, 사이트에서 Windows에 대한 지침에 대한 링크가 : http://www.mega-nerd.com/SRC/win32.html

    +0

    도와 주셔서 고맙지 만, Linux 솔루션은 Windows 솔루션이 될 수 없습니다. 이미 (Visual Studio C++로 소스 코드를 컴파일하기 위해) 시도했지만 전혀 작동하지 않았습니다. 이 작성자의 프로필을 확인하십시오. 그는 진정한 창녀입니다. 그는 의도적으로 Windows 버전을 컴파일하지 않았습니다.그는 얼마나 많은 돈이 들지 않고도 Windows 용으로 컴파일 할 돈을 요구했습니다. 우리가 더 많이 지불하면 그는 더 열심히 일합니다. 그게 전부 야. 더 이상이 헛소리는 필요 없어. – IanHacker