回答編集履歴
6
追記
    
        answer	
    CHANGED
    
    | 
         @@ -13,4 +13,9 @@ 
     | 
|
| 
       13 
13 
     | 
    
         
             
            ---
         
     | 
| 
       14 
14 
     | 
    
         
             
            Python 3.12.8の環境に「pip install py-feat」でインストールしたところ、下記エラーでインストールに失敗しました。
         
     | 
| 
       15 
15 
     | 
    
         
             
            ``AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?``
         
     | 
| 
       16 
     | 
    
         
            -
            [こちら](https://stackoverflow.com/questions/77364550/attributeerror-module-pkgutil-has-no-attribute-impimporter-did-you-mean)を参考に対処を試みたのですがエラーを解消できなかったので諦めました。
         
     | 
| 
      
 16 
     | 
    
         
            +
            [こちら](https://stackoverflow.com/questions/77364550/attributeerror-module-pkgutil-has-no-attribute-impimporter-did-you-mean)を参考に対処を試みたのですがエラーを解消できなかったので諦めました。
         
     | 
| 
      
 17 
     | 
    
         
            +
             
     | 
| 
      
 18 
     | 
    
         
            +
            Python 3.13.1でも試してみましたがこちらはインストール途中のscipyのインストールエラーで失敗しました。
         
     | 
| 
      
 19 
     | 
    
         
            +
             
     | 
| 
      
 20 
     | 
    
         
            +
             
     | 
| 
      
 21 
     | 
    
         
            +
            個人的な感想としてはやはり素直に公式の要件に従うのが良さそうです。
         
     | 
5
追記
    
        answer	
    CHANGED
    
    | 
         @@ -6,7 +6,7 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            [【inshellisense】ModuleNotFoundError: No module named 'distutils' の対処法](https://qiita.com/pitao/items/1740a62ddee797aed807)
         
     | 
| 
       7 
7 
     | 
    
         | 
| 
       8 
8 
     | 
    
         
             
            ---
         
     | 
| 
       9 
     | 
    
         
            -
            【追記】
         
     | 
| 
      
 9 
     | 
    
         
            +
            【追記】※ OSはWindoes11です
         
     | 
| 
       10 
10 
     | 
    
         
             
            Python 3.10.16の環境に「pip install py-feat」でインストールしたところ正常にインストールできました。(バージョン 0.6.2)
         
     | 
| 
       11 
11 
     | 
    
         
             
            但し、``from feat import Detector``でエラー(``ImportError: cannot import name 'simps' from 'scipy.integrate'``)が発生したため、[こちら](https://github.com/XanaduAI/strawberryfields/issues/750)を参考にScipyのバージョンを下げたところこのコードも実行できるようになりました。
         
     | 
| 
       12 
12 
     | 
    
         | 
4
修正
    
        answer	
    CHANGED
    
    | 
         @@ -6,10 +6,10 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            [【inshellisense】ModuleNotFoundError: No module named 'distutils' の対処法](https://qiita.com/pitao/items/1740a62ddee797aed807)
         
     | 
| 
       7 
7 
     | 
    
         | 
| 
       8 
8 
     | 
    
         
             
            ---
         
     | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
9 
     | 
    
         
             
            【追記】
         
     | 
| 
       11 
10 
     | 
    
         
             
            Python 3.10.16の環境に「pip install py-feat」でインストールしたところ正常にインストールできました。(バージョン 0.6.2)
         
     | 
| 
       12 
11 
     | 
    
         
             
            但し、``from feat import Detector``でエラー(``ImportError: cannot import name 'simps' from 'scipy.integrate'``)が発生したため、[こちら](https://github.com/XanaduAI/strawberryfields/issues/750)を参考にScipyのバージョンを下げたところこのコードも実行できるようになりました。
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
       13 
13 
     | 
    
         
             
            ---
         
     | 
| 
       14 
14 
     | 
    
         
             
            Python 3.12.8の環境に「pip install py-feat」でインストールしたところ、下記エラーでインストールに失敗しました。
         
     | 
| 
       15 
15 
     | 
    
         
             
            ``AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?``
         
     | 
3
追記
    
        answer	
    CHANGED
    
    | 
         @@ -6,6 +6,11 @@ 
     | 
|
| 
       6 
6 
     | 
    
         
             
            [【inshellisense】ModuleNotFoundError: No module named 'distutils' の対処法](https://qiita.com/pitao/items/1740a62ddee797aed807)
         
     | 
| 
       7 
7 
     | 
    
         | 
| 
       8 
8 
     | 
    
         
             
            ---
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
       9 
10 
     | 
    
         
             
            【追記】
         
     | 
| 
       10 
11 
     | 
    
         
             
            Python 3.10.16の環境に「pip install py-feat」でインストールしたところ正常にインストールできました。(バージョン 0.6.2)
         
     | 
| 
       11 
     | 
    
         
            -
            但し、``from feat import Detector``でエラー(``ImportError: cannot import name 'simps' from 'scipy.integrate'``)が発生したため、[こちら](https://github.com/XanaduAI/strawberryfields/issues/750)を参考にScipyのバージョンを下げたところこのコードも実行できるようになりました。
         
     | 
| 
      
 12 
     | 
    
         
            +
            但し、``from feat import Detector``でエラー(``ImportError: cannot import name 'simps' from 'scipy.integrate'``)が発生したため、[こちら](https://github.com/XanaduAI/strawberryfields/issues/750)を参考にScipyのバージョンを下げたところこのコードも実行できるようになりました。
         
     | 
| 
      
 13 
     | 
    
         
            +
            ---
         
     | 
| 
      
 14 
     | 
    
         
            +
            Python 3.12.8の環境に「pip install py-feat」でインストールしたところ、下記エラーでインストールに失敗しました。
         
     | 
| 
      
 15 
     | 
    
         
            +
            ``AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?``
         
     | 
| 
      
 16 
     | 
    
         
            +
            [こちら](https://stackoverflow.com/questions/77364550/attributeerror-module-pkgutil-has-no-attribute-impimporter-did-you-mean)を参考に対処を試みたのですがエラーを解消できなかったので諦めました。
         
     | 
2
修正
    
        answer	
    CHANGED
    
    | 
         @@ -7,5 +7,5 @@ 
     | 
|
| 
       7 
7 
     | 
    
         | 
| 
       8 
8 
     | 
    
         
             
            ---
         
     | 
| 
       9 
9 
     | 
    
         
             
            【追記】
         
     | 
| 
       10 
     | 
    
         
            -
            Python 3.10.16の 
     | 
| 
      
 10 
     | 
    
         
            +
            Python 3.10.16の環境に「pip install py-feat」でインストールしたところ正常にインストールできました。(バージョン 0.6.2)
         
     | 
| 
       11 
11 
     | 
    
         
             
            但し、``from feat import Detector``でエラー(``ImportError: cannot import name 'simps' from 'scipy.integrate'``)が発生したため、[こちら](https://github.com/XanaduAI/strawberryfields/issues/750)を参考にScipyのバージョンを下げたところこのコードも実行できるようになりました。
         
     | 
1
追記
    
        answer	
    CHANGED
    
    | 
         @@ -3,4 +3,9 @@ 
     | 
|
| 
       3 
3 
     | 
    
         | 
| 
       4 
4 
     | 
    
         
             
            エラー`No module named 'distutils.msvccompiler'`の対処法としては調べると下記があるようです。
         
     | 
| 
       5 
5 
     | 
    
         
             
            私の方で検証はしていませんので試す場合は自己責任でお願いします。
         
     | 
| 
       6 
     | 
    
         
            -
            [【inshellisense】ModuleNotFoundError: No module named 'distutils' の対処法](https://qiita.com/pitao/items/1740a62ddee797aed807)
         
     | 
| 
      
 6 
     | 
    
         
            +
            [【inshellisense】ModuleNotFoundError: No module named 'distutils' の対処法](https://qiita.com/pitao/items/1740a62ddee797aed807)
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
            ---
         
     | 
| 
      
 9 
     | 
    
         
            +
            【追記】
         
     | 
| 
      
 10 
     | 
    
         
            +
            Python 3.10.16のクリーンな環境に「pip install py-feat」でインストールしたところ正常にインストールできました。(バージョン 0.6.2)
         
     | 
| 
      
 11 
     | 
    
         
            +
            但し、``from feat import Detector``でエラー(``ImportError: cannot import name 'simps' from 'scipy.integrate'``)が発生したため、[こちら](https://github.com/XanaduAI/strawberryfields/issues/750)を参考にScipyのバージョンを下げたところこのコードも実行できるようになりました。
         
     |